blob: a5c6f5b43779592c9aa6839c29abaed60416c67f (
plain)
1 #!/bin/sh
2 #
3 # /etc/rc.d/monitd: start/stop monit daemon
4 #
5
6 CONFIG=/usr/etc/monitrc
7
8 case $1 in
9 start)
10 /usr/bin/monit -c $CONFIG
11 ;;
12 stop)
13 /usr/bin/killall -q /usr/bin/monit
14 ;;
15 reload)
16 /usr/bin/monit -c $CONFIG reload
17 ;;
18 restart)
19 $0 stop
20 sleep 1
21 $0 start
22 ;;
23 *)
24 echo "usage: $0 [start|stop|reload|restart]"
25 ;;
26 esac
27
28 # End of File
|