diff options
Diffstat (limited to 'net/openradius/files/openradius.in')
-rw-r--r-- | net/openradius/files/openradius.in | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/net/openradius/files/openradius.in b/net/openradius/files/openradius.in new file mode 100644 index 000000000000..bd049990a511 --- /dev/null +++ b/net/openradius/files/openradius.in @@ -0,0 +1,29 @@ +#!/bin/sh +# +# $FreeBSD$ +# +# PROVIDE: openradius +# REQUIRE: DAEMON +# KEYWORD: FreeBSD +# +# 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%%". +# + +. %%RC_SUBR%% + +name="openradius" +rcvar=`set_rcvar` + +load_rc_config ${name} + +: ${openradius_enable="NO"} +: ${openradius_flags="-o %%LOGFILE%%"} + +command=%%PREFIX%%/sbin/radiusd + +run_rc_command "$1" |