diff options
Diffstat (limited to 'sysutils/boxbackup-devel/files/bbackupd.sh.in')
-rw-r--r-- | sysutils/boxbackup-devel/files/bbackupd.sh.in | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/sysutils/boxbackup-devel/files/bbackupd.sh.in b/sysutils/boxbackup-devel/files/bbackupd.sh.in new file mode 100644 index 000000000000..915903437ac3 --- /dev/null +++ b/sysutils/boxbackup-devel/files/bbackupd.sh.in @@ -0,0 +1,27 @@ +#!/bin/sh +# +# $FreeBSD$ +# +# PROVIDE: bbackupd +# REQUIRE: NETWORKING +# KEYWORD: FreeBSD shutdown + +# +# Add the following line to /etc/rc.conf to enable bbackupd: +# +#bbackupd_enable="YES" +# + +: ${bbackupd_enable:="NO"} +: ${bbackupd_flags:="%%PREFIX%%/etc/box/bbackupd.conf"} +: ${bbackupd_pidfile:="/var/run/bbackupd.pid"} + +. %%RC_SUBR%% + +name="bbackupd" +rcvar=`set_rcvar` +command="%%PREFIX%%/bin/bbackupd" +extra_commands="reload" + +load_rc_config $name +run_rc_command "$1" |