Skip to content

Instantly share code, notes, and snippets.

Created October 31, 2013 05:26
Show Gist options
  • Save anonymous/7244705 to your computer and use it in GitHub Desktop.
Save anonymous/7244705 to your computer and use it in GitHub Desktop.
launch.plist
# cat /Library/LaunchDaemons/org.goagent.macos.plist
<?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>GroupName</key>
<string>wheel</string>
<key>Label</key>
<string>org.goagent.macos</string>
<key>ProgramArguments</key>
<array>
<string>/usr/bin/python</string>
<string>/opt/goagent/proxy.py</string>
</array>
<key>RunAtLoad</key>
<true/>
<key>UserName</key>
<string>root</string>
<key>WorkingDirectory</key>
<string>/opt/goagent</string>
<key>StandardOutPath</key>
<string>/var/log/goagent.log</string>
<key>StandardErrorPath</key>
<string>/var/log/goagent.log</string>
<key>KeepAlive</key>
<dict>
<key>SuccessfulExit</key>
<false/>
</dict>
</dict>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment