3 # bacula This shell script takes care of starting and stopping
4 # the bacula Storage 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@
12 # Source function library
13 . /etc/rc.d/init.d/functions
21 if [ "${SD_USER}" != '' ]; then
22 OPTIONS="${OPTIONS} -u ${SD_USER}"
25 if [ "${SD_GROUP}" != '' ]; then
26 OPTIONS="${OPTIONS} -g ${SD_GROUP}"
29 echo -n "Starting the Bacula Storage daemon: "
30 daemon @sbindir@/bacula-sd $2 ${OPTIONS} -c @sysconfdir@/bacula-sd.conf
33 [ $RETVAL -eq 0 ] && touch @subsysdir@/bacula-sd
36 echo -n "Stopping the Bacula Storage daemon: "
37 killproc @sbindir@/bacula-sd
40 [ $RETVAL -eq 0 ] && rm -f @subsysdir@/bacula-sd
48 status @sbindir@/bacula-sd
51 echo "Usage: $0 {start|stop|restart|status}"