2007-10-14 05:52:30 +00:00
|
|
|
#!/bin/sh /etc/rc.common
|
2011-11-09 19:48:57 +00:00
|
|
|
# Copyright (C) 2007-2011 OpenWrt.org
|
2007-10-14 05:52:30 +00:00
|
|
|
|
|
|
|
START=70
|
|
|
|
|
2011-11-09 19:48:57 +00:00
|
|
|
SERVICE_USE_PID=1
|
|
|
|
|
2007-10-14 05:52:30 +00:00
|
|
|
start() {
|
2011-11-09 19:48:57 +00:00
|
|
|
user_exists nagios 50 || user_add nagios 50
|
|
|
|
group_exists nagios 50 || group_add nagios 50
|
|
|
|
[ -d /var/run/nagios ] || {
|
|
|
|
mkdir -m 0755 -p /var/run/nagios
|
|
|
|
chown nagios:nagios /var/run/nagios
|
|
|
|
}
|
|
|
|
service_start /usr/sbin/nrpe -c /etc/nrpe.cfg -d
|
2007-10-14 05:52:30 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
stop() {
|
2011-11-09 19:48:57 +00:00
|
|
|
service_stop /usr/sbin/nrpe
|
2007-10-14 05:52:30 +00:00
|
|
|
}
|