# the bacula Director daemon
#
# chkconfig: 2345 92 99
-# description: It comes by night and sucks the vital essence from your computers.
+# description: The Leading Open Source Backup Solution.
#
# For Bacula release @VERSION@ (@DATE@) -- @DISTNAME@
#
case "$1" in
start)
- [ -x ${BACDIRBIN}/bacula-dir ] && {
+ [ -x ${BACDIRBIN}/bacula-dir ] && {
sleep 2
echo -n "Starting the Director daemon: "
OPTIONS=''
fi
${BACDIRBIN}/bacula-dir $2 ${OPTIONS} -v -c ${BACDIRCFG}/bacula-dir.conf
- echo Done.
- }
- ;;
+ echo Done.
+ }
+ ;;
stop)
- [ -x ${BACDIRBIN}/bacula-dir ] && {
+ [ -x ${BACDIRBIN}/bacula-dir ] && {
echo -n "Stopping the Director daemon: "
killproc ${BACDIRBIN}/bacula-dir ${DIR_PORT}
- echo Done.
- }
- ;;
+ echo Done.
+ }
+ ;;
restart)
- $0 stop
- sleep 5
- $0 start
- ;;
+ $0 stop
+ sleep 5
+ $0 start
+ ;;
status)
- [ -x ${BACDIRBIN}/bacula-dir ] && status ${BACDIRBIN}/bacula-dir ${DIR_PORT}
- ;;
+ [ -x ${BACDIRBIN}/bacula-dir ] && status ${BACDIRBIN}/bacula-dir ${DIR_PORT}
+ ;;
*)
- echo "Usage: $0 {start|stop|restart|status}"
- exit 1
- ;;
+ echo "Usage: $0 {start|stop|restart|status}"
+ exit 1
+ ;;
esac
exit 0