]> git.sur5r.net Git - bacula/bacula/blob - bacula/platforms/alpha/bacula-fd.in
Put debug code on test + fix focus on Volume in label dialog box
[bacula/bacula] / bacula / platforms / alpha / bacula-fd.in
1 #!/bin/sh
2 #
3 # bacula       This shell script takes care of starting and stopping
4 #              the bacula File daemon.
5 #
6 # chkconfig: 2345 90 9
7 # description: The Leading Open Source Backup Solution.
8 #
9 #  for Bacula release @VERSION@ (@DATE@) -- @DISTNAME@ 
10 #
11
12 case "$1" in
13     start)
14        echo "Starting the Bacula File daemon: "
15        /sbin/bacula-fd $2 -c /etc/bacula/bacula-fd.conf
16        RETVAL=$?
17        echo
18 ##       [ $RETVAL -eq 0 ] && touch @subsysdir@/bacula-fd
19        ;;
20     stop)
21        echo "Stopping the Bacula File daemon: "
22 #       killproc @sbindir@/bacula-fd
23        ID=`ps -ef | grep -F bacula-fd | grep -Fv grep | awk '{print $2}'`
24        [ -n "$ID" ] && kill $ID
25        RETVAL=$?
26        echo
27 ##       [ $RETVAL -eq 0 ] && rm -f @subsysdir@/bacula-fd
28        ;;
29     restart)
30        $0 stop
31        sleep 5
32        $0 start
33        ;;
34     *)
35        echo "Usage: $0 {start|stop|restart}"
36        exit 1
37        ;;
38 esac
39 exit 0