#! /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 File daemon.
#
# For Bacula release @VERSION@ (@DATE@) -- @DISTNAME@
#
+RETVAL=0
case "$1" in
'start')
echo "Starting the Bacula File daemon: "
$0 stop
sleep 5
$0 start
+ RETVAL=$?
;;
*)
echo "Usage: $0 {start|stop|restart}"
exit 1
;;
esac
-exit 0
+exit $RETVAL