summaryrefslogtreecommitdiff
blob: acf8b549ee78055935113ef15a588a3b795e26ae (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/sbin/openrc-run
# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2

: ${CFGFILE:=/etc/nagios/nrpe.cfg}

extra_started_commands="reload"
command="/usr/bin/${SVCNAME}"
command_args="-c ${CFGFILE} --daemon"
pidfile=/run/nrpe.pid

reload() {
    ebegin "Reloading ${SVCNAME}"
    start-stop-daemon --exec $command --pidfile $pidfile --signal HUP
    eend $?
}