Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save blackknight36/5af577d949c63cac91f42e8ed06da873 to your computer and use it in GitHub Desktop.
Save blackknight36/5af577d949c63cac91f42e8ed06da873 to your computer and use it in GitHub Desktop.
<?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>Label</key>
<string>org.collectd.collectd</string>
<key>ProgramArguments</key>
<array>
<string>/opt/local/sbin/collectd</string>
<string>-f</string>
<string>-C</string>
<string>/opt/local/etc/collectd.conf</string>
</array>
<key>RunAtLoad</key>
<true/>
<key>KeepAlive</key>
<true/>
</dict>
</plist>
@blackknight36
Copy link
Author

This is a launchd service definition for collectd. Place in /Library/LaunchDaemons and then run "launchctl load org.collectd.collectd.plist".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment