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@
12 # Source function library
13 . /etc/rc.d/init.d/functions
19 # if /lib/tls exists, force Bacula to use the glibc pthreads instead
20 if [ -d "/lib/tls" -a $OS = "Linux" -a `uname -r | cut -c1-3` = "2.4" ] ; then
21 export LD_ASSUME_KERNEL=2.4.19
27 if [ "${FD_USER}" != '' ]; then
28 OPTIONS="${OPTIONS} -u ${FD_USER}"
31 if [ "${FD_GROUP}" != '' ]; then
32 OPTIONS="${OPTIONS} -g ${FD_GROUP}"
34 echo -n "Starting Bacula File services: "
35 daemon @sbindir@/bacula-fd $2 ${OPTIONS} -c @sysconfdir@/bacula-fd.conf
38 [ $RETVAL -eq 0 ] && touch @subsysdir@/bacula-fd
41 echo -n "Stopping Bacula File services: "
42 killproc @sbindir@/bacula-fd
45 [ $RETVAL -eq 0 ] && rm -f @subsysdir@/bacula-fd
53 status @sbindir@/bacula-fd
56 echo "Usage: $0 {start|stop|restart|status}"