diff --git a/opentrafficshaper/plugins/configmanager.pm b/opentrafficshaper/plugins/configmanager.pm index ebc250f8535a3a5688550f3e65f3776315f95a3d..32418d0a1605ae0611ce71d6b86f134718513f86 100644 --- a/opentrafficshaper/plugins/configmanager.pm +++ b/opentrafficshaper/plugins/configmanager.pm @@ -830,6 +830,13 @@ sub plugin_init # Start the plugin sub plugin_start { + # Load config + if (-f $config->{'statefile'}) { + _load_statefile(); + } else { + $logger->log(LOG_WARN,"[CONFIGMANAGER] Statefile '%s' cannot be opened: %s",$config->{'statefile'},$!); + } + $logger->log(LOG_INFO,"[CONFIGMANAGER] Started with %s pools, %s pool members and %s overrides", scalar(keys %{$pools}), scalar(keys %{$poolMembers}), @@ -848,13 +855,6 @@ sub _session_start # Set our alias $kernel->alias_set("configmanager"); - # Load config - if (-f $config->{'statefile'}) { - _load_statefile($kernel); - } else { - $logger->log(LOG_WARN,"[CONFIGMANAGER] Statefile '%s' cannot be opened: %s",$config->{'statefile'},$!); - } - # Set delay on config updates $kernel->delay('_tick' => TICK_PERIOD);