aboutsummaryrefslogtreecommitdiff
path: root/sysutils/radmind/files/radmind.in
blob: d64beb14c971e93d1e98d788eadbd83ddbe75e57 (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
28
29
30
31
32
33
34
35
36
37
38
#!/bin/sh
#
# $FreeBSD$
#

# PROVIDE: radmind
# REQUIRE: DAEMON
# KEYWORD: shutdown

#
# Add the following lines to /etc/rc.conf to enable radmind:
#
#radmind_enable="YES"
#
# You may also override the default daemon user & flags:
#
#radmind_user="radmind"
#radmind_flags="-D /var/radmind -u 077 -w 0"
#
# See radmind(8) for flags
#

. /etc/rc.subr

name=radmind
rcvar=radmind_enable

command=%%PREFIX%%/sbin/radmind
required_files=%%RADMIND_BASE_DIR%%/config

# set defaults

radmind_enable=${radmind_enable:-"NO"}
radmind_user=${radmind_user:-"radmind"}
radmind_flags=${radmind_flags:-"-D %%RADMIND_BASE_DIR%% -m 5 -u 077 -w 0"}

load_rc_config ${name}
run_rc_command "$1"