3 # bacula This shell script takes care of starting and stopping
4 # the bacula File daemon.
7 # description: The Leading Open Source Backup Solution.
9 # For Bacula release @VERSION@ (@DATE@) -- @DISTNAME@
10 # Modified to work on SuSE 1/31/2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
11 # Added rc.status functions 3/13/2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
12 # Added LSB init info 10/14/2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
16 # Required-Start: $local_fs $network
17 # Required-Stop: $local_fs $network
19 # Default-Stop: 0 1 2 6
20 # Short-Description: bacula file daemon
21 # Description: Bacula network backup system file daemon
24 # source process status functions
25 # this gives us funtion rc_status -v to tell us if we succeed or fail
30 echo -n "Starting the Bacula File daemon: "
31 /sbin/startproc @sbindir@/bacula-fd $2 -c @sysconfdir@/bacula-fd.conf
35 [ $RETVAL -eq 0 ] && touch @subsysdir@/bacula-fd
38 echo -n "Stopping the Bacula File daemon: "
39 /sbin/killproc @sbindir@/bacula-fd
43 [ $RETVAL -eq 0 ] && rm -f @subsysdir@/bacula-fd
51 /sbin/checkproc @sbindir@/bacula-fd
56 echo "Usage: $0 {start|stop|restart|status}"