summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--CHANGES4
-rw-r--r--lib/Smokeping.pm2
2 files changed, 6 insertions, 0 deletions
diff --git a/CHANGES b/CHANGES
index 21c3b3c..d39436d 100644
--- a/CHANGES
+++ b/CHANGES
@@ -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: $@");