From fa618ad4282bbbbd35ee53dcd71fed599fec9e68 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 7 Apr 2024 18:21:12 +0200 Subject: Adding upstream version 4.1.0. Signed-off-by: Daniel Baumann --- startup/openrc-init.in | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 startup/openrc-init.in (limited to 'startup/openrc-init.in') diff --git a/startup/openrc-init.in b/startup/openrc-init.in new file mode 100644 index 0000000..c123c95 --- /dev/null +++ b/startup/openrc-init.in @@ -0,0 +1,21 @@ +#!/sbin/openrc-run +# +# Copyright (c) 2017 Nagios(R) Core(TM) Development Team +# + +# Supply a default value for NRPE_CFG in case the corresponding +# conf.d file is not installed. +: ${NRPE_CFG:="@sysconfdir@/nrpe.cfg"} + +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@/${RC_SVCNAME}.pid" + +reload() { + ebegin "Reloading ${RC_SVCNAME}" + start-stop-daemon --signal HUP --pidfile "${pidfile}" + eend $? +} -- cgit v1.2.3