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
15 # See how we were called.
18 # Check if the service is already running?
19 if [ ! -f /var/lock/subsys/monit ]; then
21 daemon monit -c /etc/monitrc -l syslog -d 60
23 [ $RETVAL -eq 0 ] && touch /var/lock/subsys/monit
25 msg_already_running monit
31 if [ -f /var/lock/subsys/monit ]; then
35 rm -f /var/lock/subsys/monit > /dev/null 2>&1
55 msg_usage "$0 {start|stop|restart|reload|status}"