blob: ede98c3564c1808cd2d7a29e273b524ade7f3e4c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
#!/bin/sh
#
# PROVIDE: bacula-sd
# REQUIRE: DAEMON
if [ -f /etc/rc.subr ]; then
. /etc/rc.subr
fi
name="baculasd"
rcvar=$name
command="@PREFIX@/sbin/bacula-sd"
required_files="@BACULA_ETCDIR@/bacula-sd.conf"
pidfile="@BACULA_PIDDIR@/bacula-sd.9103.pid"
command_args="-c ${required_files} -u @BACULA_SD_USER@ -g @BACULA_GROUP@"
if [ -f /etc/rc.subr ]; then
load_rc_config $name
run_rc_command "$1"
else
echo -n " ${name}"
${command} ${baculasd_flags} -c ${required_files}
fi
|