3 # monit Monitoring daemon
6 # description: Monitoring daemon
9 # Source function library
10 . /etc/rc.d/init.d/functions
13 [ -f /etc/sysconfig/monit ] && . /etc/sysconfig/monit
16 # Check if the service is already running?
17 if [ ! -f /var/lock/subsys/monit ]; then
19 daemon monit -c /etc/monitrc -l syslog -d 60
21 [ $RETVAL -eq 0 ] && touch /var/lock/subsys/monit
23 msg_already_running monit
29 if [ -f /var/lock/subsys/monit ]; then
31 daemon monit -c /etc/monitrc quit
32 rm -f /var/lock/subsys/monit > /dev/null 2>&1
39 # See how we were called.
52 if [ -f /var/lock/subsys/monit ]; then
54 daemon monit -c /etc/monitrc reload
63 monit -c /etc/monitrc status
67 msg_usage "$0 {start|stop|restart|reload|force-reload|status}"