6 BACULA_DIR_BIN
=/usr
/sbin
/bacula-dir
7 BACULA_DIR_CONF
=/etc
/bacula
/bacula-dir.conf
8 BACULA_DIR_PIDFILE
="var/run/bacula-dir.[0-9]*.pid"
9 BACULA_DIR_PID
=$
(cat $BACULA_DIR_PIDFILE 2>/dev
/null
)
13 stat_busy
"Starting Bacula Director Daemon"
14 [ -z "$BACULA_DIR_PID" ] && $BACULA_DIR_BIN -c $BACULA_DIR_CONF
23 stat_busy
"Stopping Bacula Director Daemon"
24 [ ! -z "$BACULA_DIR_PID" ] && kill $BACULA_DIR_PID &>/dev
/null
28 rm -f /var
/run
/$BACULA_DIR_PIDFILE
39 echo "usage: $0 {start|stop|restart}"