blob: 3162ac644f905ca5941a4b9061454b3b4f4bbc29 [file] [log] [blame] [edit]
#!/bin/sh
# Start/stop the monitoring server
PATH=$PATH:/usr/local/bin # Change to the right path
CONFFILE=/root/.monitrc # This is default!
case "$1" in
'start')
monit -c $CONFFILE
;;
'stop')
monit -c $CONFFILE quit
;;
*)
echo "Usage: $0 { start | stop }"
;;
esac
exit 0