From fa8c5cecd64c06a5e43f0af7df07f7190ee419ff Mon Sep 17 00:00:00 2001 From: Kern Sibbald Date: Sat, 1 May 2010 10:29:11 +0200 Subject: [PATCH] Fix bug #1564 init scripts not LSB compliant --- bacula/platforms/redhat/bacula-dir.in | 3 ++- bacula/platforms/redhat/bacula-fd.in | 3 ++- bacula/platforms/redhat/bacula-sd.in | 3 ++- 3 files changed, 6 insertions(+), 3 deletions(-) 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 -- 2.39.5