packages/admin/monit/files/monit.init
luka c5a96ca3fd [packages] monit: fix init script
git-svn-id: svn://svn.openwrt.org/openwrt/packages@36484 3c298f89-4303-0410-b956-a3cf2f4a3e73
2013-04-28 22:22:25 +00:00

17 lines
234 B
Bash

#!/bin/sh /etc/rc.common
# Copyright (C) 2006-2013 OpenWrt.org
START=60
SERVICE_USE_PID=1
start() {
[ -f /etc/monitrc ] || return 1
chmod 0600 /etc/monitrc
service_start /usr/bin/monit
}
stop() {
service_stop /usr/bin/monit
}