Created
December 10, 2015 22:39
-
-
Save reedog117/b9918ef060f0ffa1fecf to your computer and use it in GitHub Desktop.
plist to automatically run monit (from homebrew) on Mac
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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