Created
January 9, 2012 23:48
-
-
Save jbynum/1585739 to your computer and use it in GitHub Desktop.
Shell-script to restart Pow when it stops reponding
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Restarts Pow when DNS fails to resolve | |
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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment