6736b99cac
with previous versions, but also to have many new features, such as: * simple policy language (see "man unlang") * virtual servers (raddb/sites-available/README) * IPv6 support * better proxy support (raddb/proxy.conf) * More EAP types * Debugging output should be MUCH easier to understand * VMPS support * More modules are marked "stable" (python, etc.) * SQL configuration has been cleaned up (see raddb/sql/*) * limited support for HUP * check configuration and exit (radiusd -C) * Server core is now event based (simpler, more powerful)
36 lines
663 B
Bash
36 lines
663 B
Bash
#!@RCD_SCRIPTS_SHELL@
|
|
#
|
|
# $NetBSD: radiusd.sh,v 1.1.1.1 2008/05/15 19:43:47 adrianp Exp $
|
|
#
|
|
# PROVIDE: radiusd
|
|
# REQUIRE: network
|
|
#
|
|
|
|
if [ -f /etc/rc.subr ]
|
|
then
|
|
. /etc/rc.subr
|
|
fi
|
|
|
|
name="radiusd"
|
|
rcvar=${name}
|
|
command="@PREFIX@/sbin/radiusd"
|
|
pidfile="@VARBASE@/run/radiusd/radiusd.pid"
|
|
start_precmd="radiusd_precmd"
|
|
|
|
radiusd_precmd()
|
|
{
|
|
if [ ! -d @VARBASE@/run/radiusd ]; then
|
|
@MKDIR@ @VARBASE@/run/radiusd
|
|
@CHMOD@ 0750 @VARBASE@/run/radiusd
|
|
@CHOWN@ @RADIUS_USER@:@RADIUS_GROUP@ @VARBASE@/run/radiusd
|
|
fi
|
|
}
|
|
|
|
if [ -f /etc/rc.subr ]
|
|
then
|
|
load_rc_config $name
|
|
run_rc_command "$1"
|
|
else
|
|
echo -n ' ${name}'
|
|
exec ${command} ${radiusd_flags} ${command_args}
|
|
fi
|