]> git.sur5r.net Git - bacula/bacula/blobdiff - bacula/platforms/irix/bacula-dir.in
Backport from Bacula Enterprise
[bacula/bacula] / bacula / platforms / irix / bacula-dir.in
index af7b0c5c1a8b2763e7f386a89036bc4560a21c5b..78dde0366ded240244f1b0da047d9f20bc628c94 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
 #
@@ -29,10 +32,11 @@ case "$1" in
        $0 stop
        sleep 5
        $0 start
+       RETVAL=$?
        ;;
     *)
        echo "Usage: $0 {start|stop|restart}"
        exit 1
        ;;
 esac
-exit 0
+exit $RETVAL