When using a --mem=<dir> the memdir must be removed to assure
afresh start
This commit is contained in:
parent
4d49015bf9
commit
7624028419
@ -2025,6 +2025,16 @@ sub remove_stale_vardir () {
|
|||||||
mtr_verbose("Removing $opt_vardir/");
|
mtr_verbose("Removing $opt_vardir/");
|
||||||
rmtree("$opt_vardir/");
|
rmtree("$opt_vardir/");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ( $opt_mem )
|
||||||
|
{
|
||||||
|
# A symlink from var/ to $opt_mem will be set up
|
||||||
|
# remove the $opt_mem dir to assure the symlink
|
||||||
|
# won't point at an old directory
|
||||||
|
mtr_verbose("Removing $opt_mem");
|
||||||
|
rmtree($opt_mem);
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user