3 # test the reload and test command
18 $bin/bacula-dir -t $conf/bacula-dir.conf 2>&1 >> $tmp/testconf.log
21 print_debug "Should detect error on bacula-dir.conf"
27 cat > $tmp/bcons <<EOF
31 cat $tmp/bcons | $bin/bconsole -c $conf/bconsole.conf 2>&1 >>$tmp/reload.log
36 print_debug "Bacula shouldn't die with a reload"
39 ls -l /proc/$pid/fd | grep bacula-dir.conf
42 print_debug "Should not have bacula-dir.conf open"
49 $bin/bacula-dir -t $conf/bacula-dir.conf
52 print_debug "Error on bacula-dir.conf"
55 $bin/bacula-ctl-dir start >/dev/null
56 pid=`cat $working/bacula-dir.$BASEPORT.pid`
60 ls -l /proc/$pid/fd | grep bacula-dir.conf
63 print_debug "Should not have bacula-dir.conf open"
69 # backup the configuration
70 cp $conf/bacula-dir.conf $tmp/1
71 cat >> $conf/bacula-dir.conf<<EOF
78 cp $tmp/1 $conf/bacula-dir.conf
79 cat >> $conf/bacula-dir.conf<<EOF
87 cp $tmp/1 $conf/bacula-dir.conf
88 cat >> $conf/bacula-dir.conf<<EOF
91 DIRport = 1101 # where we listen for UA connections
92 QueryFile = "/tmp/regress/bin/query.sql"
93 WorkingDirectory = "/tmp/regress/working"
94 PidDirectory = "/tmp/regress/working"
95 Maximum Concurrent Jobs = 1
96 Password = "xxx" # Console password
104 cp $tmp/1 $conf/bacula-dir.conf
105 cat >> $conf/bacula-dir.conf<<EOF
107 Name = "BackupClient1"
108 JobDefs = "DefaultJob"
109 Write Bootstrap = "/tmp/regress/working/Client1.bsr"
112 Name = "BackupClient1"
113 JobDefs = "DefaultJob"
114 Write Bootstrap = "/tmp/regress/working/Client1.bsr"
121 $bin/bacula-ctl-dir stop >/dev/null