mirror of
https://git.freebsd.org/ports.git
synced 2025-06-19 19:50:31 -04:00
* 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>
25 lines
431 B
Bash
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"
|