forked from Lainports/freebsd-ports
Bareos (BackupArchivingRecoveryOpenSourced) is a reliable network open source software to backup, archive and restore files from all major operating systems. The fork was founded 2010 out of the bacula.org project. The fork has been actively developed and many new features have been added. WWW: http://www.bareos.org/
31 lines
768 B
Bash
31 lines
768 B
Bash
#!/bin/sh
|
|
#
|
|
# $FreeBSD: head/sysutils/bacula5-server/files/bacula-sd.in 323486 2013-07-22 17:51:39Z rm $
|
|
#
|
|
# PROVIDE: bareos_sd
|
|
# REQUIRE: DAEMON
|
|
# KEYWORD: shutdown
|
|
#
|
|
# Add the following lines to /etc/rc.conf.local or /etc/rc.conf
|
|
# to enable this service:
|
|
#
|
|
# bareos_sd_enable (bool): Set to NO by default.
|
|
# Set it to YES to enable bareos_sd.
|
|
# bareos_sd_flags (params): Set params used to start bareos_sd.
|
|
#
|
|
|
|
. /etc/rc.subr
|
|
|
|
name="bareos_sd"
|
|
rcvar=${name}_enable
|
|
command=%%PREFIX%%/sbin/bareos-sd
|
|
|
|
load_rc_config $name
|
|
|
|
: ${bareos_sd_enable="NO"}
|
|
: ${bareos_sd_flags=" -u bareos -g bareos -v -c %%PREFIX%%/etc/bareos/bareos-sd.conf"}
|
|
: ${bareos_sd_pidfile="/var/run/bareos/bareos-sd.9103.pid"}
|
|
|
|
pidfile="${bacula_sd_pidfile}"
|
|
|
|
run_rc_command "$1"
|