-
-
Save marfarma/2897364 to your computer and use it in GitHub Desktop.
Upstart script for monit on Ubuntu 10.04
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 stop && update-rc.d -f monit remove | |
# | |
# then put this script here: | |
# | |
# /etc/init/monit.conf | |
# | |
# and reload upstart configuration: | |
# | |
# initctl reload-configuration | |
# | |
# You can manually start and stop monit like this: | |
# | |
# start monit | |
# stop monit | |
# | |
# Michael Hale (http://halethegeek.com) | |
# Martin Pala (http://www.mmonit.com) | |
# George Ornbo (http://shapeshed.com) | |
description "Monit service manager" | |
limit core unlimited unlimited | |
start on runlevel [2345] | |
stop on runlevel [!2345] | |
expect daemon | |
respawn | |
exec /usr/sbin/monit -c /etc/monitrc | |
pre-stop exec /usr/sbin/monit -c /etc/monitrc quit |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment