#!/bin/sh
#
# $FreeBSD: ports/sysutils/radmind/files/radmind.sh.in,v 1.2 2006/02/20 20:47:43 dougb Exp $
#
# 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 flags:
#
#radmind_flags="-D /var/radmind -m 5 -u 077 -Llocal7 -w 0"
#
# See radmind(8) for flags
#
. %%RC_SUBR%%
name=radmind
rcvar=`set_rcvar`
command=%%PREFIX%%/sbin/radmind
command_args=""
required_files=%%RADMIND_BASE_DIR%%/config
# set defaults
radmind_enable=${radmind_enable:-"NO"}
radmind_flags=${radmind_flags:-"-D %%RADMIND_BASE_DIR%% -m 5 -u 077 -Llocal7 -w 0"}
load_rc_config ${name}
run_rc_command "$1"
syntax highlighted by Code2HTML, v. 0.9.1