1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-19 03:52:17 +00:00
freebsd-ports/net/gnu-radius/files/radiusd.sh.in

28 lines
483 B
Bash
Raw Normal View History

#!/bin/sh
# PROVIDE radiusd
# REQUIRE: NETWORKING SERVERS
# BEFORE: DAEMON
# KEYWORD: FreeBSD shutdown
#
# Add the following lines to /etc/rc.conf to enable radiusd:
#
# radiusd_enable="YES"
#
. %%RC_SUBR%%
name=radiusd
rcvar=`set_rcvar`
command=%%PREFIX%%/sbin/radiusd
radiusd_config=${radiusd_config:-"%%PREFIX%%/etc/raddb/config"}
required_files=${radiusd_config}
pidfile=/var/run/radiusd.pid
radiusd_enable=${radiusd_enable:-"NO"}
load_rc_config $name
run_rc_command "$1"