#!/bin/sh # $FreeBSD: head/sysutils/boxbackup/files/bbackupd.in 340872 2014-01-24 00:14:07Z mat $ # # 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"