contrib/monit/monitd

29 lines
381 B
Plaintext
Raw Normal View History

2007-12-10 21:29:47 +01:00
#!/bin/sh
#
# /etc/rc.d/monitd: start/stop monit daemon
#
CONFIG=/etc/monitrc
2007-12-10 21:29:47 +01:00
case $1 in
start)
/usr/bin/monit -c $CONFIG
;;
2007-12-10 21:29:47 +01:00
stop)
/usr/bin/killall -q /usr/bin/monit
2007-12-10 21:29:47 +01:00
;;
reload)
/usr/bin/monit -c $CONFIG reload
2007-12-10 21:29:47 +01:00
;;
restart)
$0 stop
sleep 1
$0 start
;;
2007-12-10 21:29:47 +01:00
*)
echo "usage: $0 [start|stop|reload|restart]"
;;
2007-12-10 21:29:47 +01:00
esac
# End of File