aboutsummaryrefslogtreecommitdiff
path: root/sysutils/bacula-server-devel/files/bacula-sd.in
blob: 920efd263f44565a71a06e06acb03e917a595688 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#!/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.
#

. %%RC_SUBR%%

name="bacula_sd"
rcvar=`set_rcvar`
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-sd.conf"}
: ${bacula_sd_pidfile="/var/run/bacula-sd.9103.pid"}
pidfile="${bacula_sd_pidfile}"

run_rc_command "$1"