]> git.sur5r.net Git - bacula/bacula/blobdiff - bacula/platforms/mandrake/bacula-dir.in
Backport from Bacula Enterprise
[bacula/bacula] / bacula / platforms / mandrake / bacula-dir.in
index 431244672cb8d7339acd7c6e80e8b1f063b6edc5..e1f7bdbd017500339ad5c707a4adeb2e547f3789 100755 (executable)
@@ -1,5 +1,8 @@
 #! /bin/sh
 #
+# Copyright (C) 2000-2015 Kern Sibbald
+# License: BSD 2-Clause; see file LICENSE-FOSS
+#
 # bacula       This shell script takes care of starting and stopping
 #             the bacula Director daemon
 #
@@ -32,6 +35,7 @@ case "$1" in
        $0 stop
        sleep 5
        $0 start
+       RETVAL=$?
        ;;
     status)
        status @sbindir@/bacula-dir
@@ -41,4 +45,4 @@ case "$1" in
        exit 1
        ;;
 esac
-exit 0
+exit $RETVAL