2017-11-02 09:55:48 +01:00
|
|
|
#!/sbin/openrc-run
|
2017-05-04 11:53:58 +02:00
|
|
|
#
|
2017-11-02 09:55:48 +01:00
|
|
|
# Copyright (c) 2017 Nagios(R) Core(TM) Development Team
|
2017-05-04 11:53:58 +02:00
|
|
|
#
|
|
|
|
|
2017-11-02 09:55:48 +01:00
|
|
|
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"
|
2017-05-04 11:53:58 +02:00
|
|
|
|
|
|
|
reload() {
|
2017-11-02 09:55:48 +01:00
|
|
|
ebegin "Reloading ${SVCNAME}"
|
|
|
|
start-stop-daemon --signal HUP --pidfile "${pidfile}"
|
|
|
|
eend $?
|
2017-05-04 11:53:58 +02:00
|
|
|
}
|