#!/bin/sh

# $FreeBSD: head/net/radiusd-cistron/files/radiusd-cistron.in 340872 2014-01-24 00:14:07Z mat $
#
# PROVIDE: radiusd-cistron
# REQUIRE: LOGIN
# KEYWORD: shutdown
#
# Add the following lines to /etc/rc.conf.local or /etc/rc.conf
# to enable this service:
#
# radiusd_enable (bool):   Set to NO by default.
#               Set it to YES to enable radiusd-cistron.
#

. /etc/rc.subr

name="radiusd"
rcvar="radiusd_enable"

command=/usr/local/sbin/${name}
pidfile=/var/run/${name}.pid

load_rc_config $name

: ${radiusd_enable="NO"}

command_args="-y"

run_rc_command "$1"
