From: Kern Sibbald Date: Sat, 1 May 2010 08:29:11 +0000 (+0200) Subject: Fix bug #1564 init scripts not LSB compliant X-Git-Tag: Release-7.0.0~1849 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=fa8c5cecd64c06a5e43f0af7df07f7190ee419ff;p=bacula%2Fbacula Fix bug #1564 init scripts not LSB compliant --- diff --git a/bacula/platforms/redhat/bacula-dir.in b/bacula/platforms/redhat/bacula-dir.in index 43e5111689..0032b4823f 100755 --- a/bacula/platforms/redhat/bacula-dir.in +++ b/bacula/platforms/redhat/bacula-dir.in @@ -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 diff --git a/bacula/platforms/redhat/bacula-fd.in b/bacula/platforms/redhat/bacula-fd.in index 3f1b55c1c6..c7ff247794 100755 --- a/bacula/platforms/redhat/bacula-fd.in +++ b/bacula/platforms/redhat/bacula-fd.in @@ -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 diff --git a/bacula/platforms/redhat/bacula-sd.in b/bacula/platforms/redhat/bacula-sd.in index bf434887a9..9047785d7d 100755 --- a/bacula/platforms/redhat/bacula-sd.in +++ b/bacula/platforms/redhat/bacula-sd.in @@ -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