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