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 File 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 File daemon: "
22 daemon @sbindir@/bacula-fd $2 -c @sysconfdir@/bacula-fd.conf
25 [ $RETVAL -eq 0 ] && touch @subsysdir@/bacula-fd
28 echo -n "Stopping the Bacula File daemon: "
29 killproc @sbindir@/bacula-fd
32 [ $RETVAL -eq 0 ] && rm -f @subsysdir@/bacula-fd
41 status @sbindir@/bacula-fd
44 echo "Usage: $0 {start|stop|restart|status}"