]> git.sur5r.net Git - bacula/bacula/blob - bacula/scripts/mtx-changer.conf
Changes to run bat as nonroot user.
[bacula/bacula] / bacula / scripts / mtx-changer.conf
1 #
2 # This file is sourced by the mtx-changer script every time it runs.
3 #   You can put your site customization here, and when you do an
4 #   upgrade, the process should not modify this file.  Thus you
5 #   preserve your mtx-changer configuration.
6 #
7
8 # Set to 1 if you want to do offline before unload
9 offline=0
10
11 # Set to amount of time in seconds to wait after an offline
12 offline_sleep=0
13
14 # Set to amount of time in seconds to wait after a load
15 load_sleep=0
16
17 # Set to 1 to do an inventory before a status. Not normally needed. 
18 inventory=0
19
20 # If you have a VXA PacketLoader, it might display a different 
21 #  Storage Element line, so try setting the following to 1
22 vxa_packetloader=0
23
24 # Set to 1 if you want debug info written to a log
25 debug_log=0
26
27
28 # mt status output
29 # SunOS     No Additional Sense
30 # FreeBSD   Current Driver State: at rest.
31 # Linux     ONLINE
32 #  Note Debian has a different mt than the standard Linux version. 
33 #    When no tape is in the drive it waits 2 minutes.  
34 #    When a tape is in the drive, it prints user unfriendly output.
35 #  Note, with Ubuntu Gusty (8.04), there are two versions of mt,
36 #    so we attempt to figure out which one.
37 #
38
39 OS=`uname`
40 case ${OS} in
41   SunOS)
42     ready="No Additional Sense"
43     ;;
44   FreeBSD)
45     ready="Current Driver State: at rest."
46     ;;
47   Linux)
48     ready="ONLINE"
49     if test -f /etc/debian_version ; then
50        mt --version|grep "mt-st" >/dev/null 2>&1
51        if test $? -eq 1 ; then
52           ready="drive status"
53        fi
54     fi
55   ;;
56 esac