Skip to content

Instantly share code, notes, and snippets.

@reedog117
Last active January 15, 2016 16:17
Show Gist options
  • Save reedog117/76de3f8be70a28c1d0d7 to your computer and use it in GitHub Desktop.
Save reedog117/76de3f8be70a28c1d0d7 to your computer and use it in GitHub Desktop.
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment