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

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

: ${bbackupd_enable:="NO"}
: ${bbackupd_flags:="/usr/local/etc/box/bbackupd.conf"}
: ${bbackupd_pidfile:="/var/run/bbackupd.pid"}

. /etc/rc.subr

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

load_rc_config $name
run_rc_command "$1"


syntax highlighted by Code2HTML, v. 0.9.1