#! /bin/sh
#
# bareos       This shell script takes care of starting and stopping
#	       the bareos Director daemon
#
# chkconfig: 2345 90 9
# description: Backup Archiving REcovery Open Sourced.
#
#

RETVAL=0
case "$1" in
    start)
       echo "Starting the Bareos Director: "
       @sbindir@/bareos-dir $2
       RETVAL=$?
       echo
       ;;
    stop)
       echo "Stopping the Director daemon: "
#      killproc @sbindir@/bareos-dir
       RETVAL=$?
       echo
       ;;
    restart)
       $0 stop
       sleep 5
       $0 start
       ;;
    *)
       echo "Usage: $0 {start|stop|restart}"
       exit 1
       ;;
esac
exit 0
