Skip to content

Instantly share code, notes, and snippets.

@canburak
Last active August 29, 2015 14:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save canburak/eda4ddd723030f219daa to your computer and use it in GitHub Desktop.
Save canburak/eda4ddd723030f219daa to your computer and use it in GitHub Desktop.
Daemons for a developer on Mac OS
<?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>
<!-- Do not restart when you intentinally shutdown supervisord -->
<key>KeepAlive</key>
<dict>
<key>SuccessfulExit</key>
<false/>
</dict>
<key>Label</key>
<string>com.agendaless.supervisord</string>
<key>ProgramArguments</key>
<array>
<string>/usr/local/bin/supervisord</string>
<string>-c</string>
<string>/Users/canburak/Can/supervisor/supervisor.conf</string>
</array>
<key>RunAtLoad</key>
<true/>
<key>UserName</key>
<string>canburak</string>
<key>WorkingDirectory</key>
<string>/Users/canburak/Can/supervisor/</string>
<key>StandardErrorPath</key>
<string>/Users/canburak/Can/supervisor/launchd_stderr.log</string>
<key>StandardOutPath</key>
<string>/Users/canburak/Can/supervisor/launchd_stdout.log</string>
</dict>
</plist>
[supervisord]
nodaemon=true
directory=%(here)s
childlogdir=childlogs
[unix_http_server]
file=supervisord.sock
[supervisorctl]
serverurl=unix://%(here)s/supervisord.sock
[rpcinterface:supervisor]
supervisor.rpcinterface_factory = supervisor.rpcinterface:make_main_rpcinterface
[include]
files = conf.d/*.conf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment