mirror of
https://git.freebsd.org/ports.git
synced 2025-06-12 00:00:33 -04:00
Where necessary add $FreeBSD$ to the file No PORTREVISION bump necessary because this is a no-op
38 lines
675 B
Bash
38 lines
675 B
Bash
#!/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"
|