]> git.sur5r.net Git - bacula/bacula/blobdiff - bacula/platforms/bsdi/bacula-dir.in
Backport from Bacula Enterprise
[bacula/bacula] / bacula / platforms / bsdi / bacula-dir.in
index af7b0c5c1a8b2763e7f386a89036bc4560a21c5b..342a0638dd122a46b516c135b49b405ff10bca13 100755 (executable)
@@ -1,4 +1,6 @@
 #! /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 +31,11 @@ case "$1" in
        $0 stop
        sleep 5
        $0 start
+       RETVAL=$?
        ;;
     *)
        echo "Usage: $0 {start|stop|restart}"
        exit 1
        ;;
 esac
-exit 0
+exit $RETVAL