freebsd-ports/net-mgmt/nrpe/files/nrpe.sh.in
Edwin Groothuis 9549788da8 Fix file locations and new syntax
Submitted by:	"Michael W. Oliver" <michael@gargantuan.com>
2005-05-23 23:29:42 +00:00

27 lines
510 B
Bash

#!/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`
command="%%PREFIX%%/sbin/nrpe"
[ -z "$nrpe_enable" ] && nrpe_enable="NO"
[ -z "$nrpe_config" ] && nrpe_config="%%PREFIX%%/etc/nrpe.cfg"
nrpe_flags="-c ${nrpe_config} --daemon"
load_rc_config $name
run_rc_command "$1"