mirror of
https://git.freebsd.org/ports.git
synced 2025-06-22 05:00:30 -04:00
26 lines
458 B
Bash
26 lines
458 B
Bash
#!/bin/sh
|
|
|
|
# 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"
|