1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-03 06:04:53 +00:00
freebsd-ports/sysutils/bacula-server/files/bacula-sd.in
Ruslan Makhmatkhanov 31a62e8531 Fix rc-script for bacula storage daemon. This bug was introduced in r309025
by yours truly(.

PR:		180738
Submitted by:	Oleg Ginzburg <olevole@olevole.ru>
Approved by:	Dan Langille <dan@langille.org> (maintainer)
2013-07-22 17:51:39 +00:00

32 lines
680 B
Bash

#!/bin/sh
#
# $FreeBSD$
#
# PROVIDE: bacula_sd
# REQUIRE: DAEMON
# KEYWORD: shutdown
#
# Add the following lines to /etc/rc.conf.local or /etc/rc.conf
# to enable this service:
#
# bacula_sd_enable (bool): Set to NO by default.
# Set it to YES to enable bacula_sd.
# bacula_sd_flags (params): Set params used to start bacula_sd.
#
. /etc/rc.subr
name="bacula_sd"
rcvar=${name}_enable
command=%%PREFIX%%/sbin/bacula-sd
load_rc_config $name
: ${bacula_sd_enable="NO"}
: ${bacula_sd_flags=" -u bacula -g bacula -v -c %%PREFIX%%/etc/bacula/bacula-sd.conf"}
: ${bacula_sd_pidfile="/var/run/bacula-sd.9103.pid"}
pidfile="${bacula_sd_pidfile}"
run_rc_command "$1"