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
a99f32ebb6
commit
8f8f45080f
|
@ -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>
|
||||
|
||||
* 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);
|
||||
log_message ('remote config', 'Configuration has changed!');
|
||||
|
||||
# Save the new configuration
|
||||
move ("$Conf{'temporal'}/$RemoteConfFile", "$ConfDir/$ConfFile");
|
||||
|
||||
# Empty modules, plugins and collections
|
||||
@Modules = ();
|
||||
@Plugins = ();
|
||||
%Collections = ();
|
||||
%Conf = %DefaultConf;
|
||||
|
||||
# Save the new configuration and reload it
|
||||
move ("$Conf{'temporal'}/$RemoteConfFile", "$ConfDir/$ConfFile");
|
||||
# Reload the new configuration
|
||||
read_config ();
|
||||
|
||||
# Log file may have changed
|
||||
|
|
Loading…
Reference in New Issue