summaryrefslogtreecommitdiffstats
path: root/startup/openrc-init.in
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--startup/openrc-init.in17
1 files changed, 17 insertions, 0 deletions
diff --git a/startup/openrc-init.in b/startup/openrc-init.in
new file mode 100644
index 0000000..baac193
--- /dev/null
+++ b/startup/openrc-init.in
@@ -0,0 +1,17 @@
+#!/sbin/openrc-run
+#
+# Copyright (c) 2017 Nagios(R) Core(TM) Development Team
+#
+
+command="@sbindir@/nrpe"
+command_args="--config=${NRPE_CFG} ${NRPE_OPTS}"
+command_args_background="--daemon"
+description="Nagios Remote Plugin Executor (NRPE) daemon"
+extra_started_commands="reload"
+pidfile="@piddir@/nrpe.pid"
+
+reload() {
+ ebegin "Reloading ${SVCNAME}"
+ start-stop-daemon --signal HUP --pidfile "${pidfile}"
+ eend $?
+}