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
10 # for Bacula release @VERSION@ (@DATE@) -- @DISTNAME@
15 echo "Starting the Bacula File daemon: "
16 /sbin/bacula-fd $2 -c /etc/bacula/bacula-fd.conf
19 ## [ $RETVAL -eq 0 ] && touch @subsysdir@/bacula-fd
22 echo "Stopping the Bacula File daemon: "
23 # killproc @sbindir@/bacula-fd
24 ID=`ps -ef | grep -F bacula-fd | grep -Fv grep | awk '{print $2}'`
25 [ -n "$ID" ] && kill $ID
28 ## [ $RETVAL -eq 0 ] && rm -f @subsysdir@/bacula-fd
36 echo "Usage: $0 {start|stop|restart}"