Skip to content

Instantly share code, notes, and snippets.

@schof
Created May 7, 2012 14:29
Show Gist options
  • Select an option

  • Save schof/2628078 to your computer and use it in GitHub Desktop.

Select an option

Save schof/2628078 to your computer and use it in GitHub Desktop.
Restart Pow after DNS failure
#!/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