#!/bin/sh
#
# $FreeBSD: head/www/perlbal/files/perlbal.in 340872 2014-01-24 00:14:07Z mat $
#

# PROVIDE: perlbal
# REQUIRE: LOGIN
# KEYWORK: shutdown

. /etc/rc.subr

name="perlbal"
command="/usr/local/bin/perlbal"

load_rc_config "$name"

: ${perlbal_enable="NO"}
: ${perlbal_configuration="/usr/local/etc/perlbal/perlbal.conf"}

required_files="$perlbal_configuration"

command_args="--config $required_files --daemon"

run_rc_command "$1"

