d8051e7041
PR: 113438 Submitted by: Dan Langille <dan@langille.org> (maintainer)
31 lines
667 B
Bash
31 lines
667 B
Bash
#!/bin/sh
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
# PROVIDE: utility
|
|
# 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.
|
|
#
|
|
|
|
. %%RC_SUBR%%
|
|
|
|
name="bacula_sd"
|
|
rcvar=`set_rcvar`
|
|
command=%%PREFIX%%/sbin/bacula-sd
|
|
|
|
load_rc_config $name
|
|
|
|
pidfile="${bacula_sd_pidfile}"
|
|
|
|
: ${bacula_sd_enable="NO"}
|
|
: ${bacula_sd_flags=" -u bacula -g bacula -v -c %%PREFIX%%/etc/bacula-sd.conf"}
|
|
: ${bacula_sd_pidfile="/var/run/bacula-sd.9103.pid"}
|
|
|
|
run_rc_command "$1"
|