Your IP : 216.73.216.224


Current Path : /usr/share/doc/monit/examples/
Upload File :
Current File : //usr/share/doc/monit/examples/monit.upstart

# This is an upstart script to keep monit running.
# Put this script here:
#
#   /etc/init/monit.conf
#
# and reload upstart configuration:
#
#   initctl reload-configuration
#
# You can then manually start and stop monit like this:
#
# start monit
# stop monit
#

description "Monit service manager"

limit core unlimited unlimited

start on runlevel [2345]
stop on starting rc RUNLEVEL=[016]

expect daemon
respawn

exec /usr/bin/monit -c /etc/monit/monitrc

pre-stop exec /usr/bin/monit -c /etc/monit/monitrc quit