]> git.sur5r.net Git - bacula/bacula/blob - bacula/platforms/solaris/bacula-sd.in
- Modified detection of largefiles to always set all flags regardless
[bacula/bacula] / bacula / platforms / solaris / bacula-sd.in
1 #! /bin/sh
2 #
3 # bacula       This shell script takes care of starting and stopping
4 #              the bacula Storage daemon.
5 #
6 # chkconfig: 2345 90 9
7 # description: It comes by night and sucks the vital essence from your computers.
8 #
9 #  For Bacula release @VERSION@ (@DATE@) -- @DISTNAME@
10 #
11
12 case "$1" in
13     start)
14        echo "Starting the Bacula Storage daemon: "
15        @sbindir@/bacula-sd $2 -c @sysconfdir@/bacula-sd.conf
16        RETVAL=$?
17        echo
18        [ $RETVAL -eq 0 ] && touch @subsysdir@/bacula-sd
19        ;;
20     stop)
21        echo "Stopping the Bacula Storage daemon: "
22 #      killproc @sbindir@/bacula-sd
23        RETVAL=$?
24        echo
25        [ $RETVAL -eq 0 ] && rm -f @subsysdir@/bacula-sd
26        ;;
27     restart)
28        $0 stop
29        sleep 5
30        $0 start
31        ;;
32     *)
33        echo "Usage: $0 {start|stop|restart}"
34        exit 1
35        ;;
36 esac
37 exit 0