2005-05-21 13:50:44 +02:00
|
|
|
#!/bin/sh
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
#
|
|
|
|
# Add the following lines to /etc/rc.conf to enable apache2:
|
|
|
|
# nrpe_enable (bool): Set to "NO" by default.
|
|
|
|
# Set it to "YES" to enable nrpe
|
|
|
|
# nrpe_config (string): Set to "/usr/local/etc/nrpe.cfg" by default.
|
|
|
|
#
|
|
|
|
|
|
|
|
. %%RC_SUBR%%
|
|
|
|
|
|
|
|
name="nrpe"
|
|
|
|
rcvar=`set_rcvar`
|
|
|
|
|
2005-05-24 01:29:42 +02:00
|
|
|
command="%%PREFIX%%/sbin/nrpe"
|
2005-05-21 13:50:44 +02:00
|
|
|
|
|
|
|
[ -z "$nrpe_enable" ] && nrpe_enable="NO"
|
|
|
|
[ -z "$nrpe_config" ] && nrpe_config="%%PREFIX%%/etc/nrpe.cfg"
|
|
|
|
|
2005-05-24 01:29:42 +02:00
|
|
|
nrpe_flags="-c ${nrpe_config} --daemon"
|
2005-05-21 13:50:44 +02:00
|
|
|
|
|
|
|
load_rc_config $name
|
|
|
|
|
|
|
|
run_rc_command "$1"
|