3 # bacula This shell script takes care of starting and stopping
4 # the bacula Director daemon
6 # chkconfig: 2345 92 99
7 # description: It comes by night and sucks the vital essence from your computers.
9 # For Bacula release @VERSION@ (@DATE@) -- @DISTNAME@
12 # Source function library
13 . /etc/rc.d/functions.bacula
17 [ -x ${BACDIRBIN}/bacula-dir ] && {
19 echo -n "Starting the Director daemon: "
21 if [ "${DIR_USER}" != '' ]; then
22 OPTIONS="${OPTIONS} -u ${DIR_USER}"
25 if [ "${DIR_GROUP}" != '' ]; then
26 OPTIONS="${OPTIONS} -g ${DIR_GROUP}"
29 ${BACDIRBIN}/bacula-dir $2 ${OPTIONS} -v -c ${BACDIRCFG}/bacula-dir.conf
34 [ -x ${BACDIRBIN}/bacula-dir ] && {
35 echo -n "Stopping the Director daemon: "
36 killproc ${BACDIRBIN}/bacula-dir ${DIR_PORT}
46 [ -x ${BACDIRBIN}/bacula-dir ] && status ${BACDIRBIN}/bacula-dir ${DIR_PORT}
49 echo "Usage: $0 {start|stop|restart|status}"