Skip to content

Instantly share code, notes, and snippets.

@jbynum
Created January 9, 2012 23:48
Show Gist options
  • Save jbynum/1585739 to your computer and use it in GitHub Desktop.
Save jbynum/1585739 to your computer and use it in GitHub Desktop.
Shell-script to restart Pow when it stops reponding
#!/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