ports/sysutils/boxbackup-devel/files/bbackupd.in
Kurt Jaeger d50fd63d36 Revive ports: sysutils/boxbackup, sysutils/boxbackup-devel
- revived
- stage support added
- compilation issues fixed

PR:		194223
Submitted by:	Hrant Dadivanyan <hrant@dadivanyan.net>,
		Chris Hutchinson <portmaster@bsdforge.com>
2014-12-11 05:49:41 +00:00

28 lines
472 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=bbackupd_enable
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"