Skip to content

Instantly share code, notes, and snippets.

@orendon
Forked from jbynum/pow-restart
Created February 1, 2013 15:11
Show Gist options
  • Save orendon/4691873 to your computer and use it in GitHub Desktop.
Save orendon/4691873 to your computer and use it in GitHub Desktop.
#!/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