diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-07 16:21:12 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-07 16:21:12 +0000 |
commit | fa618ad4282bbbbd35ee53dcd71fed599fec9e68 (patch) | |
tree | 9dfd8920b74d0bdcfdd3f663fcc8e74701cf095b /startup/openrc-init.in | |
parent | Initial commit. (diff) | |
download | nagios-nrpe-fa618ad4282bbbbd35ee53dcd71fed599fec9e68.tar.xz nagios-nrpe-fa618ad4282bbbbd35ee53dcd71fed599fec9e68.zip |
Adding upstream version 4.1.0.upstream/4.1.0upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'startup/openrc-init.in')
-rw-r--r-- | startup/openrc-init.in | 21 |
1 files changed, 21 insertions, 0 deletions
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 $? +} |