summaryrefslogtreecommitdiff
path: root/net/openradius/files/openradius.in
blob: 938480ef0dc92f9a551950e202be43f10061af7a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#!/bin/sh

# 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"