Created
August 7, 2008 20:12
-
-
Save mikehale/4483 to your computer and use it in GitHub Desktop.
Monit Upstart Script
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
# This is an event.d (upstart) script to keep monit running | |
# To install disable the old way of doing things: | |
# | |
# /etc/init.d/monit quit && update-rc.d -f monit remove | |
# | |
# then put this script here: /etc/event.d/monit | |
# | |
# You can manually start and stop monit like this: | |
# | |
# start monit | |
# stop monit | |
# | |
# Michael Hale (http://halethegeek.com) | |
start on runlevel 2 | |
start on runlevel 3 | |
start on runlevel 4 | |
start on runlevel 5 | |
stop on runlevel 0 | |
stop on runlevel 6 | |
exec /usr/sbin/monit -Ic /etc/monit/monitrc | |
respawn |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment