mirror of
https://git.freebsd.org/ports.git
synced 2025-05-20 19:13:27 -04:00
- revived - stage support added - compilation issues fixed PR: 194223 Submitted by: Hrant Dadivanyan <hrant@dadivanyan.net>, Chris Hutchinson <portmaster@bsdforge.com>
28 lines
472 B
Bash
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"
|