1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-30 16:24:05 +03:00

Fix problem with mysqladmin logging to var/log before var has been created

And if var/ has been created, it will be recreated later so the logs
from "mtr_kill_leftovers" will be lost anyway
This commit is contained in:
msvensson@neptunus.(none)
2006-11-28 12:36:26 +01:00
parent d1ed2e21b8
commit afe91a26c6
2 changed files with 2 additions and 16 deletions

View File

@ -1887,19 +1887,6 @@ sub kill_running_servers () {
# This is different from terminating processes we have
# started from this run of the script, this is terminating
# leftovers from previous runs.
if ( ! -d $opt_vardir )
{
if ( -l $opt_vardir and ! -d readlink($opt_vardir) )
{
mtr_report("Removing $opt_vardir symlink without destination");
unlink($opt_vardir);
}
# The "var" dir does not exist already
# the processes that mtr_kill_leftovers start will write
# their log files to var/log so it should be created
mkpath("$opt_vardir/log");
}
mtr_kill_leftovers();
}
}