]> git.sur5r.net Git - bacula/bacula/blob - bacula/platforms/solaris/bacula-sd.in
6a0adb80a96e3696f927e03f7dd1d04b17e79e2f
[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: 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 Storage daemon: "
15        @sbindir@/bacula-sd $2 -c @sysconfdir@/bacula-sd.conf
16        ;;
17     stop)
18        echo "Stopping the Bacula Storage daemon: "
19        pkill -x bacula-sd
20        ;;
21     restart)
22        $0 stop
23        sleep 5
24        $0 start
25        ;;
26     *)
27        echo "Usage: $0 {start|stop|restart}"
28        exit 1
29        ;;
30 esac
31 exit 0