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 Director daemon
10 # description: The Leading Open Source Backup Solution.
12 # For Bacula release @VERSION@ (@DATE@) -- @DISTNAME@
15 # Source function library
16 . /etc/rc.d/init.d/functions
21 echo -n "Starting the Bacula Director: "
22 daemon @sbindir@/bacula-dir $2 -c @sysconfdir@/bacula-dir.conf
25 [ $RETVAL -eq 0 ] && touch @subsysdir@/bacula-dir
28 echo -n "Stopping the Director daemon: "
29 killproc @sbindir@/bacula-dir
32 [ $RETVAL -eq 0 ] && rm -f @subsysdir@/bacula-dir
41 status @sbindir@/bacula-dir
44 echo "Usage: $0 {start|stop|restart|status}"