]> git.sur5r.net Git - bacula/bacula/blobdiff - bacula/platforms/irix/bacula-fd.in
Backport copyright changes
[bacula/bacula] / bacula / platforms / irix / bacula-fd.in
index 671eb4b0c2211a596f538808d17219f4ce5d1ebe..374faf956a3eb3ebc366530e539e2591c743322b 100755 (executable)
@@ -1,5 +1,8 @@
 #! /bin/sh
 #
+# Copyright (C) Kern Sibbald 2000-2015
+# License: BSD 2-Clause
+#
 # bacula       This shell script takes care of starting and stopping
 #             the bacula File daemon.
 #
@@ -9,6 +12,7 @@
 #  For Bacula release @VERSION@ (@DATE@) -- @DISTNAME@
 #
 
+RETVAL=0
 case "$1" in
     'start')
        echo "Starting the Bacula File daemon: "
@@ -30,10 +34,11 @@ case "$1" in
        $0 stop
        sleep 5
        $0 start
+       RETVAL=$?
        ;;
     *)
        echo "Usage: $0 {start|stop|restart}"
        exit 1
        ;;
 esac
-exit 0
+exit $RETVAL