3 # bacula This shell script takes care of starting and stopping
4 # the bacula File daemon.
6 # chkconfig: 2345 91 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 ${BACFDBIN}/bacula-fd ] && {
19 echo -n "Starting the File daemon: "
21 if [ "${FD_USER}" != '' ]; then
22 OPTIONS="${OPTIONS} -u ${FD_USER}"
25 if [ "${FD_GROUP}" != '' ]; then
26 OPTIONS="${OPTIONS} -g ${FD_GROUP}"
29 ${BACFDBIN}/bacula-fd $2 ${OPTIONS} -v -c ${BACFDCFG}/bacula-fd.conf
34 [ -x ${BACFDBIN}/bacula-fd ] && {
35 echo -n "Stopping the File daemon: "
36 killproc ${BACFDBIN}/bacula-fd ${FD_PORT}
46 [ -x ${BACFDBIN}/bacula-fd ] && status ${BACFDBIN}/bacula-fd ${FD_PORT}
49 echo "Usage: $0 {start|stop|restart|status}"