Skip to content

Instantly share code, notes, and snippets.

@samsonjs
Last active December 23, 2015 15:49
Show Gist options
  • Save samsonjs/6657795 to your computer and use it in GitHub Desktop.
Save samsonjs/6657795 to your computer and use it in GitHub Desktop.
launchd config file for NorthWatcher: https://github.com/samsonjs/NorthWatcher
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>KeepAlive</key>
<dict>
<key>SuccessfulExit</key>
<false/>
</dict>
<key>Label</key>
<string>net.samhuri.northwatcher</string>
<key>ProgramArguments</key>
<array>
<string>/usr/local/bin/node</string>
<string>/usr/local/bin/northwatcher</string>
</array>
<key>RunAtLoad</key>
<true/>
<key>UserName</key>
<string>sjs</string>
<key>WorkingDirectory</key>
<string>/Users/sjs</string>
<key>StandardErrorPath</key>
<string>/var/log/northwatcher.log</string>
<key>StandardOutPath</key>
<string>/var/log/northwatcher.log</string>
</dict>
</plist>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment