summaryrefslogtreecommitdiffstats
path: root/testing/pnp4nagios/npcd
blob: 2b17bea51adfa6ce2491b59a1aceabf37b945aea (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/sbin/runscript

depend() {
        use net
        need dbus
        before nfs
        after logger
	}

start() {
        ebegin "Starting npcd"
        start-stop-daemon --start --quiet --exec /usr/bin/npcd -- -d -f /etc/pnp4nagios/npcd.cfg
        eend $?
	}

stop() {
       ebegin "Stopping npcd"
       start-stop-daemon --stop --quiet --exec /usr/bin/npcd
       eend $?
	}