mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-18 03:46:03 +00:00
1ecf5e6d0f
load fails). Do not remove config files, install -dist versions instead. Approved by: perky (mentor) Special thanks to: Anton Yuzhaninov <citrin@citrin.ru>
28 lines
483 B
Bash
28 lines
483 B
Bash
#!/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"
|