FreeBSD Port: nrpe2-2.0

Mads Sülau Jørgensen mads at sulau.dk
Tue Apr 5 01:42:03 PDT 2005


Hi.

The startup script in your nrpe2 port is not working (the binary in 
nrpe2 is not called nrpe) :)

I've attached a startup script you can use, it's crafted in the "new" 
way, using /usr/local/etc/rc.subr to do all the dirty work.

-- 
Mads Sülau Jørgensen
"All glory to the hypno toad!"
-------------- next part --------------
#!/bin/sh
#

# PROVIDE: nrpe2
# REQUIRE: NETWORKING SERVERS
# BEFORE: DAEMON
# KEYWORD: FreeBSD

#
# Add the following lines to /etc/rc.conf to enable nrpe2:
# nrpe2_enable (bool):      Set to "NO" by default.
#                           Set it to "YES" to enable nrpe2
#

. /usr/local/etc/rc.subr

name="nrpe2"
rcvar=`set_rcvar`

[ -z "$nrpe2_enable" ] && nrpe2_enable="NO"
[ -z "$nrpe2_config" ] && nrpe2_config="/usr/local/etc/nrpe.cfg"

command="/usr/local/sbin/nrpe2"
flags="-c ${nrpe2_config} -d"

load_rc_config $name
run_rc_command "$1"
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 294 bytes
Desc: OpenPGP digital signature
Url : http://lists.freebsd.org/pipermail/freebsd-ports/attachments/20050405/1deedaf7/signature.bin


More information about the freebsd-ports mailing list