summaryrefslogtreecommitdiff
path: root/sysutils/boxbackup/files/bbackupd.in
blob: ae7240515f8644e2058bf5ed7773593647fcf0a3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#!/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/boxbackup/bbackupd.conf"}

pidfile=${bbackupd_pidfile:-"/var/run/bbackupd.pid"}

command="%%PREFIX%%/sbin/bbackupd"
extra_commands="reload"

run_rc_command "$1"