]> git.sur5r.net Git - bacula/bacula/commitdiff
Fix bug #1564 init scripts not LSB compliant
authorKern Sibbald <kern@sibbald.com>
Sat, 1 May 2010 08:29:11 +0000 (10:29 +0200)
committerKern Sibbald <kern@sibbald.com>
Sat, 1 May 2010 08:30:06 +0000 (10:30 +0200)
bacula/platforms/redhat/bacula-dir.in
bacula/platforms/redhat/bacula-fd.in
bacula/platforms/redhat/bacula-sd.in

index 43e5111689fcabbbaef6e5e48d0bf31ba61c0940..0032b4823f7d15834c0d9acfa42fc1c7fb361687 100755 (executable)
@@ -61,10 +61,11 @@ case "$1" in
        ;;
     status)
        status @sbindir@/bacula-dir
+       RETVAL=$?
        ;;
     *)
        echo "Usage: $0 {start|stop|restart|status}"
        exit 1
        ;;
 esac
-exit 0
+exit $RETVAL
index 3f1b55c1c6df45ca124b862d9f139bd09b44c502..c7ff24779412368dc70295dcde239788f6e38b9f 100755 (executable)
@@ -61,10 +61,11 @@ case "$1" in
        ;;
     status)
        status @sbindir@/bacula-fd
+       RETVAL=$?
        ;;
     *)
        echo "Usage: $0 {start|stop|restart|status}"
        exit 1
        ;;
 esac
-exit 0
+exit $RETVAL
index bf434887a9fe2db7da5b392a707f1ca035865d62..9047785d7d7554d158749c11f985423aa2b9504a 100755 (executable)
@@ -62,10 +62,11 @@ case "$1" in
        ;;
     status)
        status @sbindir@/bacula-sd
+       RETVAL=$?
        ;;
     *)
        echo "Usage: $0 {start|stop|restart|status}"
        exit 1
        ;;
 esac
-exit 0
+exit $RETVAL