]> git.sur5r.net Git - bacula/bacula/blob - bacula/platforms/bsdi/bacula-dir.in
crypto: Add a tiny OpenSSL compat level
[bacula/bacula] / bacula / platforms / bsdi / bacula-dir.in
1 #! /bin/sh
2 # Copyright (C) 2000-2015 Kern Sibbald
3 # License: BSD 2-Clause; see file LICENSE-FOSS
4 #
5 # bacula       This shell script takes care of starting and stopping
6 #              the bacula Director daemon
7 #
8 # chkconfig: 2345 90 9
9 # description: The Leading Open Source Backup Solution.
10 #
11 #  For Bacula release @VERSION@ (@DATE@) -- @DISTNAME@
12 #
13
14 RETVAL=0
15 case "$1" in
16     start)
17        echo "Starting the Bacula Director: "
18        @sbindir@/bacula-dir $2 -c @sysconfdir@/bacula-dir.conf
19        RETVAL=$?
20        echo
21        [ $RETVAL -eq 0 ] && touch @subsysdir@/bacula-dir
22        ;;
23     stop)
24        echo "Stopping the Director daemon: "
25 #      killproc @sbindir@/bacula-dir
26        RETVAL=$?
27        echo
28        [ $RETVAL -eq 0 ] && rm -f @subsysdir@/bacula-dir
29        ;;
30     restart)
31        $0 stop
32        sleep 5
33        $0 start
34        RETVAL=$?
35        ;;
36     *)
37        echo "Usage: $0 {start|stop|restart}"
38        exit 1
39        ;;
40 esac
41 exit $RETVAL