2006-10-04 21:04:48 +00:00
|
|
|
#!/bin/sh /etc/rc.common
|
2013-04-28 22:22:25 +00:00
|
|
|
# Copyright (C) 2006-2013 OpenWrt.org
|
2006-08-05 16:12:53 +00:00
|
|
|
|
2007-03-18 17:15:05 +00:00
|
|
|
START=60
|
2011-11-09 19:48:55 +00:00
|
|
|
|
|
|
|
SERVICE_USE_PID=1
|
2006-08-05 16:12:53 +00:00
|
|
|
|
2006-10-04 21:04:48 +00:00
|
|
|
start() {
|
2011-11-09 19:48:55 +00:00
|
|
|
[ -f /etc/monitrc ] || return 1
|
2013-04-28 22:22:25 +00:00
|
|
|
chmod 0600 /etc/monitrc
|
2012-07-12 08:09:57 +00:00
|
|
|
service_start /usr/bin/monit
|
2006-10-04 21:04:48 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
stop() {
|
2011-11-09 19:48:55 +00:00
|
|
|
service_stop /usr/bin/monit
|
2006-10-04 21:04:48 +00:00
|
|
|
}
|