]> git.sur5r.net Git - bacula/bacula/blob - bacula/scripts/mtx-changer.conf
Add Phil Stracchino's fix for Qt5
[bacula/bacula] / bacula / scripts / mtx-changer.conf
1 #
2 # Copyright (C) 2000-2015 Kern Sibbald
3 # License: BSD 2-Clause; see file LICENSE-FOSS
4 #
5 #
6 # This file is sourced by the mtx-changer script every time it runs.
7 #   You can put your site customization here, and when you do an
8 #   upgrade, the process should not modify this file.  Thus you
9 #   preserve your mtx-changer configuration.
10 #
11
12 # We update the version when an incompatible change 
13 #   to mtx-changer or this conf file is made, such as
14 #   adding a new required variable.
15 version=2
16
17 # Set to 1 if you want to do offline before unload
18 offline=0
19
20 # Set to amount of time in seconds to wait after an offline
21 offline_sleep=0
22
23 # Set to amount of time in seconds to wait after a load
24 load_sleep=0
25
26 # Set to 1 to do an inventory before a status. Not normally needed. 
27 inventory=0
28
29 # If you have a VXA PacketLoader, it might display a different 
30 #  Storage Element line, so try setting the following to 1
31 vxa_packetloader=0
32
33 #
34 # Debug logging
35 #
36
37 # If you have multiple SD's, set this differently for each one
38 #  so you know which message comes from which one. This can
39 #  be any string, and will appear in each debug message just
40 #  after the time stamp.
41 chgr_id=0
42
43 # Set to 1 if you want debug info written to a log
44 debug_log=0
45
46 # Set to debug level you want to see 
47 #     0 is off 
48 #    10 is important events (load, unload, loaded)
49 #   100 is everything
50 # Note debug_log must be set to 1 for anything to be generated
51 #
52 debug_level=10  
53
54 # Debug levels by importance
55 #  Normally you do not need to change this
56 dbglvl=100
57 # More important messages
58 idbglvl=10
59
60 #
61 # mt status output
62 # SunOS     No Additional Sense
63 # FreeBSD   Current Driver State: at rest.
64 # Linux     ONLINE
65 #  Note Debian has a different mt than the standard Linux version. 
66 #    When no tape is in the drive it waits 2 minutes.  
67 #    When a tape is in the drive, it prints user unfriendly output.
68 #  Note, with Ubuntu Gusty (8.04), there are two versions of mt,
69 #    so we attempt to figure out which one.
70 #
71
72 OS=`uname`
73 case ${OS} in
74   SunOS)
75     ready="No Additional Sense"
76     ;;
77   FreeBSD)
78     ready="Current Driver State: at rest."
79     ;;
80   Linux)
81     ready="ONLINE"
82     if test -f /etc/debian_version ; then
83        mt --version|grep "mt-st" >/dev/null 2>&1
84        if test $? -eq 1 ; then
85           ready="drive status"
86        fi
87     fi
88   ;;
89 esac