2013-04-17 Ramon Novoa <rnovoa@artica.es>
* unix/pandora_agent: Empty the configuration hash before reloading the configuration. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@8008 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
parent
76d756c40e
commit
aebb74d46c
|
@ -1,3 +1,8 @@
|
||||||
|
2013-04-17 Ramon Novoa <rnovoa@artica.es>
|
||||||
|
|
||||||
|
* unix/pandora_agent: Empty the configuration hash before reloading
|
||||||
|
the configuration.
|
||||||
|
|
||||||
2013-04-15 Ramon Novoa <rnovoa@artica.es>
|
2013-04-15 Ramon Novoa <rnovoa@artica.es>
|
||||||
|
|
||||||
* win32/pandora_windows_service.cc: Open the XML data file in binary
|
* win32/pandora_windows_service.cc: Open the XML data file in binary
|
||||||
|
|
|
@ -931,13 +931,16 @@ sub check_remote_config () {
|
||||||
return if (recv_file ($RemoteConfFile) != 0);
|
return if (recv_file ($RemoteConfFile) != 0);
|
||||||
log_message ('remote config', 'Configuration has changed!');
|
log_message ('remote config', 'Configuration has changed!');
|
||||||
|
|
||||||
|
# Save the new configuration
|
||||||
|
move ("$Conf{'temporal'}/$RemoteConfFile", "$ConfDir/$ConfFile");
|
||||||
|
|
||||||
# Empty modules, plugins and collections
|
# Empty modules, plugins and collections
|
||||||
@Modules = ();
|
@Modules = ();
|
||||||
@Plugins = ();
|
@Plugins = ();
|
||||||
%Collections = ();
|
%Collections = ();
|
||||||
|
%Conf = %DefaultConf;
|
||||||
|
|
||||||
# Save the new configuration and reload it
|
# Reload the new configuration
|
||||||
move ("$Conf{'temporal'}/$RemoteConfFile", "$ConfDir/$ConfFile");
|
|
||||||
read_config ();
|
read_config ();
|
||||||
|
|
||||||
# Log file may have changed
|
# Log file may have changed
|
||||||
|
|
Loading…
Reference in New Issue