From 8762b27d67156886d144213ba656aa3e8edfcf8b Mon Sep 17 00:00:00 2001 From: cmar Date: Wed, 4 Apr 2012 12:54:31 -0400 Subject: [PATCH] command to restart pow process --- plugins/pow/pow.plugin.zsh | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/plugins/pow/pow.plugin.zsh b/plugins/pow/pow.plugin.zsh index c823cdb2..7f86c0c7 100644 --- a/plugins/pow/pow.plugin.zsh +++ b/plugins/pow/pow.plugin.zsh @@ -72,5 +72,14 @@ powed(){ find ~/.pow/ -type l -lname "*$basedir*" -exec basename {}'.dev' \; } +# Restart pow process +# taken from http://www.matthewratzloff.com/blog/2011/12/23/restarting-pow-when-dns-stops-responding +repow(){ + lsof | grep 20560 | awk '{print $2}' | xargs kill -9 + launchctl unload ~/Library/LaunchAgents/cx.pow.powd.plist + launchctl load ~/Library/LaunchAgents/cx.pow.powd.plist + echo "restarted pow" +} + # View the standard out (puts) from any pow app alias kaput="tail -f ~/Library/Logs/Pow/apps/*" \ No newline at end of file