openwrt-barrierbreaker/files/etc/init.d/monit
2014-11-11 18:05:36 +01:00

17 lines
297 B
Bash
Executable file

#!/bin/sh /etc/rc.common
# Copyright (C) 2006-2012 OpenWrt.org
START=60
SERVICE_USE_PID=1
start() {
[ -f /etc/monitrc ] || return 1
ls -l /etc/monitrc | grep -q '^-rw-------'
[ $? -eq 0 ] || chmod 0700 /etc/monitrc
service_start /usr/bin/monit
}
stop() {
service_stop /usr/bin/monit
}