3 # bacula This shell script takes care of starting and stopping
4 # the bacula Director daemon
6 # chkconfig: 2345 92 99
7 # description: It comes by night and sucks the vital essence from your computers.
9 # For Bacula release @VERSION@ (@DATE@) -- @DISTNAME@
12 # Source function library
13 . /etc/rc.d/init.d/functions
22 if [ "${DIR_USER}" != '' ]; then
23 OPTIONS="${OPTIONS} -u ${DIR_USER}"
26 if [ "${DIR_GROUP}" != '' ]; then
27 OPTIONS="${OPTIONS} -g ${DIR_GROUP}"
29 echo -n "Starting the Bacula Director: "
30 daemon @sbindir@/bacula-dir $2 ${OPTIONS} -c @sysconfdir@/bacula-dir.conf
33 [ $RETVAL -eq 0 ] && touch @subsysdir@/bacula-dir
36 echo -n "Stopping the Director daemon: "
37 killproc @sbindir@/bacula-dir
40 [ $RETVAL -eq 0 ] && rm -f @subsysdir@/bacula-dir
48 status @sbindir@/bacula-dir
51 echo "Usage: $0 {start|stop|restart|status}"