3 # Bacula(R) - The Network Backup Solution
5 # Copyright (C) 2000-2015 Kern Sibbald
6 # Copyright (C) 2000-2014 Free Software Foundation Europe e.V.
8 # The original author of Bacula is Kern Sibbald, with contributions
9 # from many others, a complete list can be found in the file AUTHORS.
11 # You may use this file and others of this release according to the
12 # license defined in the LICENSE file, which includes the Affero General
13 # Public License, v3.0 ("AGPLv3") and some additional permissions and
14 # terms pursuant to its AGPLv3 Section 7.
16 # This notice must be preserved when any source code is
17 # conveyed and/or propagated.
19 # Bacula(R) is a registered trademark of Kern Sibbald.
21 # bacula This shell script takes care of starting and stopping
24 # This is pretty much watered down version of the RedHat script
25 # that works on Solaris as well as Linux, but it won't work everywhere.
27 # description: The Leading Open Source Backup Solution.
30 # All these are not *really* needed but it makes it
31 # easier to "steal" this code for the development
32 # environment where they are different.
36 # Disable Glibc malloc checks, it doesn't help and it keeps from getting
43 [ -x ${SCRIPTDIR}/bacula-ctl-sd ] && ${SCRIPTDIR}/bacula-ctl-sd $1 $2
44 [ -x ${SCRIPTDIR}/bacula-ctl-fd ] && ${SCRIPTDIR}/bacula-ctl-fd $1 $2
45 [ -x ${SCRIPTDIR}/bacula-ctl-dir ] && ${SCRIPTDIR}/bacula-ctl-dir $1 $2
49 # Stop the FD first so that SD will fail jobs and update catalog
50 [ -x ${SCRIPTDIR}/bacula-ctl-fd ] && ${SCRIPTDIR}/bacula-ctl-fd $1 $2
51 [ -x ${SCRIPTDIR}/bacula-ctl-sd ] && ${SCRIPTDIR}/bacula-ctl-sd $1 $2
52 [ -x ${SCRIPTDIR}/bacula-ctl-dir ] && ${SCRIPTDIR}/bacula-ctl-dir $1 $2
62 [ -x ${SCRIPTDIR}/bacula-ctl-sd ] && ${SCRIPTDIR}/bacula-ctl-sd status
63 [ -x ${SCRIPTDIR}/bacula-ctl-fd ] && ${SCRIPTDIR}/bacula-ctl-fd status
64 [ -x ${SCRIPTDIR}/bacula-ctl-dir ] && ${SCRIPTDIR}/bacula-ctl-dir status
68 echo "Usage: $0 {start|stop|restart|status}"