diff --git a/pandora_agents/unix/ChangeLog b/pandora_agents/unix/ChangeLog index 1edc1312af..23fbd61902 100644 --- a/pandora_agents/unix/ChangeLog +++ b/pandora_agents/unix/ChangeLog @@ -1,3 +1,7 @@ +2009-11-19 Ramon Novoa + + * pandora_agent: Fixed bug #2888991. Skip remote_config if debug is enabled. + 2009-11-18 Sancho Lerena * pandora_agent: Fixed a problem sending the module type in the XML. diff --git a/pandora_agents/unix/pandora_agent b/pandora_agents/unix/pandora_agent index cc0c053e26..2854f84e82 100755 --- a/pandora_agents/unix/pandora_agent +++ b/pandora_agents/unix/pandora_agent @@ -497,7 +497,7 @@ sub guess_os_version ($) { # Check command line arguments print_usage unless ($#ARGV == 0); -$ConfDir = $ARGV[0]; +$ConfDir = fix_directory ($ARGV[0]); error ("Directory '$ConfDir' does not exist.") unless (-d "$ConfDir"); # Guess the OS version @@ -513,8 +513,8 @@ start_log (); read_config (); # Fix directory names -$ConfDir = fix_directory ($ConfDir); $Conf{'temporal'} = fix_directory ($Conf{'temporal'}); +error ("Temporal directory '" . $Conf{'temporal'} . "' does not exist.") unless (-d "$Conf{'temporal'}"); $Conf{'server_path'} = fix_directory ($Conf{'server_path'}); $Conf{'secondary_server_path'} = fix_directory ($Conf{'secondary_server_path'}); @@ -526,7 +526,7 @@ sleep ($Conf{'delayed_startup'}); while (1) { # Check for a new configuration - check_remote_config (); + check_remote_config () unless ($Conf{'debug'} eq '1'); my $xml = "\n" . "