aboutsummaryrefslogtreecommitdiffstats
path: root/testing/nagios/nagios.initd
diff options
context:
space:
mode:
Diffstat (limited to 'testing/nagios/nagios.initd')
-rw-r--r--testing/nagios/nagios.initd39
1 files changed, 0 insertions, 39 deletions
diff --git a/testing/nagios/nagios.initd b/testing/nagios/nagios.initd
deleted file mode 100644
index e0b3bcf0c3..0000000000
--- a/testing/nagios/nagios.initd
+++ /dev/null
@@ -1,39 +0,0 @@
-#!/sbin/runscript
-
-# Sample init.d file for alpine linux.
-
-NAME=nagios
-DAEMON=/usr/sbin/$NAME
-
-depend() {
- need net
- after firewall
-}
-
-start() {
- ebegin "Starting ${NAME}"
- start-stop-daemon --start --quiet --background \
- --make-pidfile --pidfile /var/run/${NAME}.pid \
- --exec ${DAEMON} -- ${OPTS} /etc/nagios/nagios.cfg
- eend $?
-}
-
-stop() {
- ebegin "Stopping ${NAME}"
- start-stop-daemon --stop --quiet \
- --exec ${DAEMON} \
- --pidfile /var/run/${NAME}.pid \
- eend $?
-}
-
-reload() {
- ebegin "Reloading ${NAME}"
- if ! service_started "${NAME}" ; then
- eend 1 "${NAME} is not started"
- return 1
- fi
- start-stop-daemon --stop --oknodo --signal HUP \
- --exec ${DAEMON} --pidfile /var/run/${NAME}.pid
- eend $?
-}
-