3 # bacula This shell script takes care of starting and stopping
4 # the bacula Director daemon
6 # description: The Leading Open Source Backup Solution.
8 # For Bacula release @VERSION@ (@DATE@) -- @DISTNAME@
18 if [ ! -z "${DIR_USER}" ]; then
19 [ -z "${DIR_OPTIONS}" ] && DIR_OPTIONS="-u ${DIR_USER}" || \
20 DIR_OPTIONS="${DIR_OPTIONS} -u ${DIR_USER}"
22 if [ ! -z "${DIR_GROUP}" ]; then
23 [ -z "${DIR_OPTIONS}" ] && DIR_OPTIONS="-g ${DIR_GROUP}" || \
24 DIR_OPTIONS="${DIR_OPTIONS} -g ${DIR_GROUP}"
27 echo "Starting the Bacula Director: "
28 @sbindir@/bacula-dir $2 ${DIR_OPTIONS} -c @sysconfdir@/bacula-dir.conf
31 echo "Stopping the Director daemon: "
32 if [ -x /usr/bin/zonename ]; then
33 case `/usr/bin/zonename` in
35 pkill -z global -x bacula-dir
51 echo "Usage: $0 {start|stop|restart}"