SD_USER=@sd_user@
SD_GROUP=@sd_group@
+OS=`uname -s`
+# if /lib/tls exists, force Bacula to use the glibc pthreads instead
+if [ -d "/lib/tls" -a $OS = "Linux" -a `uname -r | cut -c1-3` = "2.4" ] ; then
+ export LD_ASSUME_KERNEL=2.4.19
+fi
+RETVAL=0
case "$1" in
start)
OPTIONS=''
OPTIONS="${OPTIONS} -g ${SD_GROUP}"
fi
- echo -n "Starting the Bacula Storage daemon: "
+ echo -n "Starting Bacula Storage services: "
daemon @sbindir@/bacula-sd $2 ${OPTIONS} -c @sysconfdir@/bacula-sd.conf
RETVAL=$?
echo
[ $RETVAL -eq 0 ] && touch @subsysdir@/bacula-sd
;;
stop)
- echo -n "Stopping the Bacula Storage daemon: "
+ echo -n "Stopping Bacula Storage services: "
killproc @sbindir@/bacula-sd
RETVAL=$?
echo