diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-06 01:20:09 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-06 01:20:09 +0000 |
commit | 018433a6da60c6395baaaa0833d5c50ac6645552 (patch) | |
tree | 2012deeff2f98b267c0c10425c1d4a054190b73f /startup/openrc-init.in | |
parent | Initial commit. (diff) | |
download | nagios-nrpe-018433a6da60c6395baaaa0833d5c50ac6645552.tar.xz nagios-nrpe-018433a6da60c6395baaaa0833d5c50ac6645552.zip |
Adding upstream version 3.2.1.upstream/3.2.1upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rw-r--r-- | startup/openrc-init.in | 17 |
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 $? +} |