]> git.sur5r.net Git - bacula/bacula/blob - bacula/platforms/solaris/bacula-dir.in
- Modified detection of largefiles to always set all flags regardless
[bacula/bacula] / bacula / platforms / solaris / bacula-dir.in
1 #! /bin/sh
2 #
3 # bacula       This shell script takes care of starting and stopping
4 #              the bacula Director daemon
5 #
6 # chkconfig: 2345 92 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 RETVAL=0
13 case "$1" in
14     start)
15        echo "Starting the Bacula Director: "
16        @sbindir@/bacula-dir $2 -c @sysconfdir@/bacula-dir.conf
17        RETVAL=$?
18        echo
19        [ $RETVAL -eq 0 ] && touch @subsysdir@/bacula-dir
20        ;;
21     stop)
22        echo "Stopping the Director daemon: "
23 #      killproc @sbindir@/bacula-dir
24        RETVAL=$?
25        echo
26        [ $RETVAL -eq 0 ] && rm -f @subsysdir@/bacula-dir
27        ;;
28     restart)
29        $0 stop
30        sleep 5
31        $0 start
32        ;;
33     *)
34        echo "Usage: $0 {start|stop|restart}"
35        exit 1
36        ;;
37 esac
38 exit 0