]> git.sur5r.net Git - bacula/bacula/blobdiff - bacula/platforms/redhat/bacula-sd.in
minor spec file edit for SLES9 compat.
[bacula/bacula] / bacula / platforms / redhat / bacula-sd.in
index ca8179fb13cf6cd6dbe3b3321677e7a7bf2e6eeb..2e9200bb4e046f76582c1abf3644a6c8944d1b1a 100755 (executable)
 
 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=''
@@ -26,14 +32,14 @@ case "$1" in
          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