3 # bacula This shell script takes care of starting and stopping
4 # the bacula Director daemon
6 # chkconfig: 2345 90 99
7 # description: It comes by night and sucks the vital essence from your computers.
9 # For Bacula release @VERSION@ (@DATE@) -- @DISTNAME@
16 echo -n "Starting the Bacula Director: "
17 /sbin/startproc @sbindir@/bacula-dir $2 -c @sysconfdir@/bacula-dir.conf
20 [ $RETVAL -eq 0 ] && touch @subsysdir@/bacula-dir
23 echo -n "Stopping the Director daemon: "
24 /sbin/killproc @sbindir@/bacula-dir
27 [ $RETVAL -eq 0 ] && rm -f @subsysdir@/bacula-dir
35 /sbin/checkproc @sbindir@/bacula-dir
38 echo "Usage: $0 {start|stop|restart|status}"