summaryrefslogtreecommitdiff
path: root/sysutils/boxbackup-devel/files/bbackupd.in
blob: 8e2e3af1bfed42d392cf160e7cc9e07f0e7315b6 (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=`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"