Skip to content

Instantly share code, notes, and snippets.

@christianberg
Created November 24, 2014 15:55
Show Gist options
  • Save christianberg/69eb89b36901c27b647d to your computer and use it in GitHub Desktop.
Save christianberg/69eb89b36901c27b647d to your computer and use it in GitHub Desktop.
launchd config for runit
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>KeepAlive</key>
<true/>
<key>Label</key>
<string>local.runit</string>
<key>ProgramArguments</key>
<array>
<string>/usr/local/bin/runsvdir</string>
<string>/Users/cberg/services</string>
</array>
<key>RunAtLoad</key>
<true />
<key>EnvironmentVariables</key>
<dict>
<key>PATH</key>
<string>/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin</string>
</dict>
<key>StandardOutPath</key>
<string>/Users/cberg/Library/Logs/runit/runsvdir-out.log</string>
<key>StandardErrorPath</key>
<string>/Users/cberg/Library/Logs/runit/runsvdir-err.log</string>
</dict>
</plist>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment