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
# 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 |
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> |