1. Install Monit as root:

 ./configure
 make
 make install

2. Add monit service configuration to upstart:

/etc/init/monit.conf

 # This is an 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
 #

 description "Monit service manager"

 limit core unlimited unlimited

 start on runlevel [2345]
 stop on runlevel [!2345]

 expect daemon
 respawn

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

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

3. Reload the upstart configuration and start monit:

 initctl reload-configuration
 start monit
Page last modified on January 30, 2012, at 09:45 PM CET

Copyright © 2012 Tildeslash Ltd. All Rights Reserved.