public
Last active

Upstart script for monit on Ubuntu 10.04

  • Download Gist
monit.conf
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35
# 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

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.