3 # Copyright (C) 2000-2015 Kern Sibbald
4 # License: BSD 2-Clause; see file LICENSE-FOSS
6 # bacula This shell script takes care of starting and stopping
7 # the bacula Storage daemon.
9 # chkconfig: 2345 90 99
10 # description: The Leading Open Source Backup Solution.
12 # For Bacula release @VERSION@ (@DATE@) -- @DISTNAME@
15 # Source function library
16 . /etc/rc.d/functions.bacula
21 [ -x ${BACSDBIN}/bacula-sd ] && {
23 echo -n "Starting the Storage daemon: "
25 if [ "${SD_USER}" != '' ]; then
26 OPTIONS="${OPTIONS} -u ${SD_USER}"
29 if [ "${SD_GROUP}" != '' ]; then
30 OPTIONS="${OPTIONS} -g ${SD_GROUP}"
33 ${BACSDBIN}/bacula-sd $2 ${OPTIONS} -v -c ${BACSDCFG}/bacula-sd.conf
39 [ -x ${BACSDBIN}/bacula-sd ] && {
40 echo -n "Stopping the Storage daemon: "
41 killproc ${BACSDBIN}/bacula-sd ${SD_PORT}
53 [ -x ${BACSDBIN}/bacula-sd ] && status ${BACSDBIN}/bacula-sd ${SD_PORT}
57 echo "Usage: $0 {start|stop|restart|status}"