Skip to content

Instantly share code, notes, and snippets.

@reedog117
Created December 10, 2015 22:39
Show Gist options
  • Save reedog117/b9918ef060f0ffa1fecf to your computer and use it in GitHub Desktop.
Save reedog117/b9918ef060f0ffa1fecf to your computer and use it in GitHub Desktop.
plist to automatically run monit (from homebrew) on Mac
<?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">
<--!
This should go into /Library/LaunchDaemons
Make sure this file as well as /usr/local/etc/monit* have ownership set to root:wheel
Then run launchctl load -w /Library/LaunchDaemons/com.tildeslash.monit.plist
-->
<dict>
<key>Label</key>
<string>com.tildeslash.monit</string>
<key>ProgramArguments</key>
<array>
<string>/usr/local/bin/monit</string>
<string>-I</string>
<string>-c</string>
<string>/usr/local/etc/monitrc</string>
</array>
<key>RunAtLoad</key>
<true/>
<key>Sockets</key>
<dict>
<key>MyListenerSocket</key>
<dict>
<key>SockServiceName</key>
<string>2812</string>
</dict>
</dict>
</dict>
</plist>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment