ports/net/tac_plus4/files/tac_plus.in
Joe Marcus Clarke 0feb54e2eb * Update to F4.0.4.13
* Configure tac_plus to run as the user tacacs after starting up [1]
* Convert to USE_RC_SUBR

Requested by:	Ryan Steinmetz <rpsfa@rit.edu>
2006-10-31 02:42:33 +00:00

25 lines
431 B
Bash

#!/bin/sh
#
# $FreeBSD$
#
# PROVIDE: tac_plus
# REQUIRE: DAEMON
#
# Add the following line to /etc/rc.conf to enable the TACACS+ daemon:
#
# tac_plus_enable="YES"
#
tac_plus_enable=${tac_plus_enable-"NO"}
tac_plus_flags=${tac_plus_flags-"-C %%PREFIX%%/etc/tac_plus.conf"}
. %%RC_SUBR%%
name=tac_plus
rcvar=`set_rcvar`
command="%%PREFIX%%/bin/tac_plus"
pidfile="/var/run/${name}.pid"
load_rc_config ${name}
run_rc_command "$1"