summaryrefslogtreecommitdiff
path: root/package/monit/files/monit.init
blob: 91a7aca4b83fce8d69022086d8e03dde34de68ff (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/sh
#PKG monit
#INIT 10

. /etc/rc.conf

case $1 in
autostop) ;;
autostart|start)
	monit $monit_flags
	;;
stop)
	killall monit	
	;;
restart)
	sh $0 stop
	sh $0 start
	;;
*)
	echo "usage: $0 (start|stop|restart)"
	exit 1
esac
exit $?