summaryrefslogtreecommitdiffstats
path: root/startup/openbsd-init.in
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--startup/openbsd-init.in18
1 files changed, 18 insertions, 0 deletions
diff --git a/startup/openbsd-init.in b/startup/openbsd-init.in
new file mode 100644
index 0000000..1713646
--- /dev/null
+++ b/startup/openbsd-init.in
@@ -0,0 +1,18 @@
+#!/bin/sh
+#
+# Copyright (c) 2016 Nagios(R) Core(TM) Development Team
+#
+
+daemon="@sbindir@/nrpe"
+
+. /etc/rc.d/rc.subr
+
+rc_pre() {
+ install -d -o @nrpe_user@ ${pidfile%/*}
+}
+
+rc_reload() {
+ pkill -HUP -xf "${pexp}"
+}
+
+rc_cmd "$1"