mirror of
https://github.com/percona/percona-toolkit.git
synced 2025-09-21 03:14:58 +00:00
Use defaults-file in test config file to simulate user's setup.
This commit is contained in:
@@ -313,6 +313,7 @@ diag(`rm -f $pid_file $log_file $cnf_file >/dev/null 2>&1`);
|
||||
|
||||
open my $fh, '>', $cnf_file or die "Error opening $cnf_file: $OS_ERROR";
|
||||
print { $fh } <<EOF;
|
||||
defaults-file=$master_cnf
|
||||
log-dsn=$slave_dsn,$log_dsn
|
||||
daemonize
|
||||
run-time=1
|
||||
@@ -321,8 +322,6 @@ interval=1
|
||||
match-db=$target_db
|
||||
pid=$pid_file
|
||||
log=$log_file
|
||||
--
|
||||
$master_dsn
|
||||
EOF
|
||||
close $fh;
|
||||
|
||||
|
Reference in New Issue
Block a user