--- files/shibboleth-sp.in 2010-03-27 04:27:29.000000000 -0700 +++ files/shibboleth-sp.in 2011-03-22 17:28:11.000000000 -0700 @@ -1,6 +1,6 @@ #!/bin/sh # -# $FreeBSD: ports/security/shibboleth2-sp/files/shibboleth-sp.in,v 1.3 2010/03/27 00:14:48 dougb Exp $ +# $FreeBSD$ # # PROVIDE: shibboleth_sp # REQUIRE: DAEMON @@ -11,10 +11,10 @@ name="shibboleth_sp" rcvar=${name}_enable -[ -z "$shibboleth_sp_enable" ] && shibboleth_sp_enable="NO" -pidfile="/var/run/${name}.pid" -command="%%PREFIX%%/sbin/shibd" -start_cmd="${command} -f -p ${pidfile} &" - load_rc_config $name + +command=${shibboleth_sp_program:-%%PREFIX%%/sbin/shibd} +pidfile="${shibboleth_sp_pidfile:-/var/run/${name}.pid}" +command_args="-f -p ${pidfile}" + run_rc_command "$1"