Skip to content

Instantly share code, notes, and snippets.

@viktorbenei
Last active December 25, 2022 18:40
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save viktorbenei/588f1080bf009e60cb44 to your computer and use it in GitHub Desktop.
Save viktorbenei/588f1080bf009e60cb44 to your computer and use it in GitHub Desktop.
Monit OS X Launch Agent Plist file
<!--
Don't forget to set the /path/to/.monitrc path!
* Save this into: ~/Library/LaunchAgents/vb.monit.plist
* Load with (auto loaded at user login): launchctl load ~/Library/LaunchAgents/vb.monit.plist
* Unload with: launchctl unload ~/Library/LaunchAgents/vb.monit.plist
-->
<?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>
<key>Label</key>
<string>vb.monit</string>
<key>ProgramArguments</key>
<array>
<string>/usr/local/bin/monit</string>
<string>-c</string>
<string>/path/to/.monitrc</string>
<string>-I</string>
</array>
<key>KeepAlive</key>
<true/>
</dict>
</plist>
@jpartain89
Copy link

So THANK YOU SO MUCH for making this file. Literally exactly what I needed and worked perfectly.

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