ports/sysutils/boxbackup-devel/files/bbstored.sh.in
Doug Barton 1d6b4b3f91 Begin the process of deprecating sysutils/rc_subr by
s#. %%RC_SUBR%%#. /etc/rc.subr#
2010-03-27 00:15:24 +00:00

27 lines
461 B
Bash

#!/bin/sh
#
# $FreeBSD$
#
# 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:="%%PREFIX%%/etc/box/bbstored.conf"}
: ${bbstored_pidfile:="/var/run/bbstored.pid"}
. /etc/rc.subr
name="bbstored"
rcvar=`set_rcvar`
command="%%PREFIX%%/bin/bbstored"
extra_commands="reload"
load_rc_config $name
run_rc_command "$1"