mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-11 02:50:24 +00:00
c55da37cb0
- 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)
34 lines
486 B
Bash
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"
|