]> git.sur5r.net Git - bacula/bacula/blob - bacula/platforms/suse/bacula-sd.in
Start SIGHUP coding + misc
[bacula/bacula] / bacula / platforms / suse / bacula-sd.in
1 #! /bin/sh
2 #
3 # This file is reported not to work by Alan Brown 21Feb04
4 #
5 # bacula       This shell script takes care of starting and stopping
6 #              the bacula Storage daemon.
7 #
8 # chkconfig: 2345 90 99
9 # description: It comes by night and sucks the vital essence from your computers.
10 #
11 #  For Bacula release @VERSION@ (@DATE@) -- @DISTNAME@
12 #
13
14
15 case "$1" in
16     start)
17        echo -n "Starting the Bacula Storage daemon: "
18        /sbin/startproc @sbindir@/bacula-sd $2 -c @sysconfdir@/bacula-sd.conf
19        RETVAL=$?
20        echo
21        [ $RETVAL -eq 0 ] && touch @subsysdir@/bacula-sd
22        ;;
23     stop)
24        echo -n "Stopping the Bacula Storage daemon: "
25        /sbin/killproc @sbindir@/bacula-sd
26        RETVAL=$?
27        echo
28        [ $RETVAL -eq 0 ] && rm -f @subsysdir@/bacula-sd
29        ;;
30     restart)
31        $0 stop
32        sleep 5
33        $0 start
34        ;;
35     status)
36        /sbin/checkproc @sbindir@/bacula-sd
37        ;;
38     *)
39        echo "Usage: $0 {start|stop|restart|status}"
40        exit 1
41        ;;
42 esac
43 exit 0