1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-11 02:50:24 +00:00
freebsd-ports/net-mgmt/nrpe2/files/nrpe2.in
Martin Matuska c55da37cb0 - added support for variables from net-mgmt/nagios
- updated sample configuration file
- renamed startup script from nrpe2.sh to nrpe2
- changed maintainer to Jarrod Sayers <jarrot@netleader.com.au>

PR:		ports/114035
Submitted by:	Jarrod Sayers <jarrot@netleader.com.au>
Approved by:	maintainer, garga (mentor)
2007-07-24 12:57:40 +00:00

34 lines
486 B
Bash

#!/bin/sh
#
# $FreeBSD$
#
# PROVIDE: nrpe2
# REQUIRE: NETWORKING
# KEYWORD: shutdown
#
# Add the following lines to /etc/rc.conf to enable nrpe2:
#
#nrpe2_enable="YES"
#
#
. %%RC_SUBR%%
name=nrpe2
rcvar=`set_rcvar`
command="%%PREFIX%%/sbin/nrpe2"
required_files=%%PREFIX%%/etc/nrpe.cfg
command_args="-c ${required_files} -d"
pidfile=/var/run/${name}.pid
# set defaults
nrpe2_enable=${nrpe2_enable:-"NO"}
nrpe2_flags=${nrpe2_flags:-""}
load_rc_config ${name}
run_rc_command "$1"