1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-18 03:46:03 +00:00
freebsd-ports/net/gnu-radius/files/radiusd.sh.in
Vsevolod Stakhov 1ecf5e6d0f Use libtool13 as libtool15 doesn't work with this port (dynamic modules
load fails).
Do not remove config files, install -dist versions instead.

Approved by:		perky (mentor)
Special thanks to:	Anton Yuzhaninov <citrin@citrin.ru>
2005-07-28 06:40:01 +00:00

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"