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@
17 if [ ! -z "${DIR_USER}" ]; then
18 [ -z "${DIR_OPTIONS}" ] && DIR_OPTIONS="-u ${DIR_USER}" || \
19 DIR_OPTIONS="${DIR_OPTIONS} -u ${DIR_USER}"
21 if [ ! -z "${DIR_GROUP}" ]; then
22 [ -z "${DIR_OPTIONS}" ] && DIR_OPTIONS="-g ${DIR_GROUP}" || \
23 DIR_OPTIONS="${DIR_OPTIONS} -g ${DIR_GROUP}"
26 echo "Starting the Bacula Director: "
27 @sbindir@/bacula-dir $2 ${DIR_OPTIONS} -c @sysconfdir@/bacula-dir.conf
30 echo "Stopping the Director daemon: "
31 if [ -x /usr/bin/zonename ]; then
32 case `/usr/bin/zonename` in
34 pkill -z global -x bacula-dir
50 echo "Usage: $0 {start|stop|restart}"