diff options
author | cmar <chris@spreecommerce.com> | 2012-04-04 12:54:31 -0400 |
---|---|---|
committer | Phil Eichinger <phil@zankapfel.net> | 2014-03-25 16:47:57 +0100 |
commit | 8d1fa09007b3bbd67cbdcf191eb6cd6faa2af974 (patch) | |
tree | 412c7941257fa0ecea658faae7b0a8bea4922090 | |
parent | 640e5da6885ac39697f7c4ad6683af21fa1b8b96 (diff) | |
download | zsh-8d1fa09007b3bbd67cbdcf191eb6cd6faa2af974.tar.gz zsh-8d1fa09007b3bbd67cbdcf191eb6cd6faa2af974.tar.bz2 zsh-8d1fa09007b3bbd67cbdcf191eb6cd6faa2af974.zip |
command to restart pow process
-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 |