#!/bin/sh
#
# $FreeBSD: ports/sysutils/boxbackup/files/bbstored.sh.in,v 1.2 2006/02/20 20:47:41 dougb Exp $
#
# PROVIDE: bbstored
# REQUIRE: NETWORKING
# KEYWORD: shutdown

#
# Add the following line to /etc/rc.conf to enable bbstored:
#
#bbstored_enable="YES"
#

: ${bbstored_enable:="NO"}
: ${bbstored_flags:="/usr/local/etc/box/bbstored.conf"}
: ${bbstored_pidfile:="/var/run/bbstored.pid"}

. /etc/rc.subr

name="bbstored"
rcvar=`set_rcvar`
command="/usr/local/bin/bbstored"
extra_commands="reload"

load_rc_config $name
run_rc_command "$1"
