diff options
author | cmar <chris@spreecommerce.com> | 2012-04-04 12:54:31 -0400 |
---|---|---|
committer | cmar <chris@spreecommerce.com> | 2012-04-04 12:54:31 -0400 |
commit | 8762b27d67156886d144213ba656aa3e8edfcf8b (patch) | |
tree | 9fc75c69f5177af7ffefcdca11212ef870aeb7bd /plugins/pow | |
parent | aefacb69509f8cdd4ad3b0bba9b77cd9ee63e115 (diff) | |
download | zsh-8762b27d67156886d144213ba656aa3e8edfcf8b.tar.gz zsh-8762b27d67156886d144213ba656aa3e8edfcf8b.tar.bz2 zsh-8762b27d67156886d144213ba656aa3e8edfcf8b.zip |
command to restart pow process
Diffstat (limited to 'plugins/pow')
-rw-r--r-- | plugins/pow/pow.plugin.zsh | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/plugins/pow/pow.plugin.zsh b/plugins/pow/pow.plugin.zsh index c823cdb22..7f86c0c76 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 |