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