ports/sysutils/boxbackup-devel/files/bbackupd.in
Ryan Steinmetz 69669dd88f - Update to SVN Version 0.11_trunk_2979
- Fix and rename rc scripts
- Pacify portlint(1)
- Use USERS/GROUPS
- Add LICENSE
- Fix COMMENT

PR:		ports/159966 ports/160618
Submitted by:	James O'Gorman <james@netinertia.co.uk> (maintainer)
Approved by:	wxs (mentor)
2011-09-16 20:54:53 +00:00

28 lines
468 B
Bash

#!/bin/sh
# $FreeBSD$
#
# PROVIDE: bbackupd
# REQUIRE: NETWORKING
# KEYWORD: shutdown
#
# Add the following line to /etc/rc.conf to enable bbackupd:
#
# bbackupd_enable="YES"
. /etc/rc.subr
name="bbackupd"
rcvar=`set_rcvar`
load_rc_config $name
: ${bbackupd_enable:="NO"}
: ${bbackupd_flags:="%%PREFIX%%/etc/box/bbackupd.conf"}
pidfile=${bbackupd_pidfile:-"/var/run/bbackupd.pid"}
command="%%PREFIX%%/sbin/bbackupd"
extra_commands="reload"
run_rc_command "$1"