Skip to content

Instantly share code, notes, and snippets.

@reedog117
reedog117 / com.tildeslash.monit.conf
Last active January 15, 2016 16:17
Log rotation for monit on Mac OS X
# Log rotation for monit on Mac OS X
# place in /etc/newsyslog.d
# sudo newsyslog -nvv to verify it's working
# logfilename [owner:group] mode count size when flags [/pid_file] [sig_num]
/var/log/monit.log 644 5 2048 $M1D0 J /var/run/monit.pid
@reedog117
reedog117 / com.tildeslash.monit.plist
Created December 10, 2015 22:39
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>