summaryrefslogtreecommitdiffstats
path: root/testing/pnp4nagios/npcd
diff options
context:
space:
mode:
Diffstat (limited to 'testing/pnp4nagios/npcd')
-rw-r--r--testing/pnp4nagios/npcd21
1 files changed, 21 insertions, 0 deletions
diff --git a/testing/pnp4nagios/npcd b/testing/pnp4nagios/npcd
new file mode 100644
index 000000000..2b17bea51
--- /dev/null
+++ b/testing/pnp4nagios/npcd
@@ -0,0 +1,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 $?
+ }
+