1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-27 00:57:50 +00:00
freebsd-ports/net/openradius/files/openradius.in
2013-12-29 16:29:03 +00:00

30 lines
533 B
Bash

#!/bin/sh
#
# $FreeBSD$
#
# PROVIDE: openradius
# REQUIRE: DAEMON
# KEYWORD: shutdown
#
# Add the following line to /etc/rc.conf to enable openradius:
#
# openradius_enable (bool): Set to "YES" to enable openradius.
# Default is "NO".
# openradius_flags (flags); Set extra flags to openradius.
# Default is "-o %%LOGFILE%%".
#
. /etc/rc.subr
name=openradius
rcvar=openradius_enable
load_rc_config ${name}
: ${openradius_enable:=no}
: ${openradius_flags=-o %%LOGFILE%%}
command=%%PREFIX%%/sbin/radiusd
run_rc_command "$1"