6 BACULA_SD_BIN
=/usr
/sbin
/bacula-sd
7 BACULA_SD_CONF
=/etc
/bacula
/bacula-sd.conf
8 BACULA_SD_PID
=`pidof -o %PPID $BACULA_SD_BIN`
9 BACULA_SD_PIDFILE
="var/run/bacula-sd.[0-9]*.pid"
10 BACULA_SD_PID
=$
(cat $BACULA_SD_PIDFILE 2>/dev
/null
)
15 stat_busy
"Starting Bacula Storage Daemon"
16 [ -z "$BACULA_SD_PID" ] && $BACULA_SD_BIN -c $BACULA_SD_CONF
25 stat_busy
"Stopping Bacula Storage Daemon"
26 [ ! -z "$BACULA_SD_$PID" ] && kill $BACULA_SD_PID &>/dev
/null
30 rm -f /var
/run
/bacula-sd.pid
41 echo "usage: $0 {start|stop|restart}"