8d1fa09007b3bbd67cbdcf191eb6cd6faa2af974

Author
cmar <chris@spreecommerce.com>
Committer
Phil Eichinger <phil@zankapfel.net>
Date

Message

command to restart pow process

Diff

 1diff --git a/plugins/pow/pow.plugin.zsh b/plugins/pow/pow.plugin.zsh
 2index c823cdb22424f22bc136a5f6f7ea4dd967eb669c..7f86c0c76ed9e051a28aa82519d11776d0c05add 100644
 3--- a/plugins/pow/pow.plugin.zsh
 4+++ b/plugins/pow/pow.plugin.zsh
 5@@ -72,5 +72,14 @@ powed(){
 6   find ~/.pow/ -type l -lname "*$basedir*" -exec basename {}'.dev' \;
 7 }
 8 
 9+# Restart pow process
10+# taken from http://www.matthewratzloff.com/blog/2011/12/23/restarting-pow-when-dns-stops-responding
11+repow(){
12+  lsof | grep 20560 | awk '{print $2}' | xargs kill -9
13+  launchctl unload ~/Library/LaunchAgents/cx.pow.powd.plist
14+  launchctl load ~/Library/LaunchAgents/cx.pow.powd.plist
15+  echo "restarted pow"
16+}
17+
18 # View the standard out (puts) from any pow app
19 alias kaput="tail -f ~/Library/Logs/Pow/apps/*"