diff options
-rw-r--r-- | CHANGES | 4 | ||||
-rw-r--r-- | lib/Smokeping.pm | 2 |
2 files changed, 6 insertions, 0 deletions
@@ -1,3 +1,7 @@ +* make sure reload_config reloads in any case even when the config has not changed ... + with this we solve the problem that maybe some @include configs have changed + which we would not find out otherwise -- tobi + * updated cropper: when selecting something outside the graph, multiply by 10. Use this to zoom out -- tobi 2007/9/16 -- released version 2.2.4 diff --git a/lib/Smokeping.pm b/lib/Smokeping.pm index 0324ae9..f870d05 100644 --- a/lib/Smokeping.pm +++ b/lib/Smokeping.pm @@ -4021,6 +4021,8 @@ sub reload_cfg ($) { my $cfgfile = shift; my ($oldcfg, $oldprobes) = ($cfg, $probes); do_log("Reloading configuration."); + $cfg = undef; + $probes = undef; eval { load_cfg($cfgfile) }; if ($@) { do_log("Reloading configuration from $cfgfile failed: $@"); |