3 # bacula This shell script takes care of starting and stopping
4 # the bacula File daemon.
7 # description: It comes by night and sucks the vital essence from your computers.
9 # For Bacula release @VERSION@ (@DATE@) -- @DISTNAME@
14 echo "Starting the Bacula File daemon: "
15 if test -x @sbindir@/bacula-fd && test -f @sysconfidir@/bacula-fd.conf; then
16 exec @sbindir@/bacula-fd $2 -c @sysconfdir@/bacula-fd.conf
20 [ $RETVAL -eq 0 ] && touch @subsysdir@/bacula-fd
23 echo "Stopping the Bacula File daemon: "
24 /sbin/killall -k 10 -TERM @sbindir@/bacula-fd
27 [ $RETVAL -eq 0 ] && rm -f @subsysdir@/bacula-fd
35 echo "Usage: $0 {start|stop|restart}"