#! /bin/sh
. /etc/rc.d/init.d/functions
MONIT=/usr/bin/monit
case "$1" in
start)
daemon $NICELEVEL $MONIT
RETVAL=$?
echo
;;
stop)
echo -n "Stopping monit: "
killproc monit
RETVAL=$?
echo
;;
restart)
$0 stop
$0 start
RETVAL=$?
;;
*)
esac
exit $RETVAL