Merge branch '3048-fallo-configuracion-remota-servidor' into 'develop'

re-initialize pandorafms_server after configuration change

See merge request artica/pandorafms!1942
This commit is contained in:
vgilc 2018-11-07 16:17:15 +01:00
commit 9142b82131
1 changed files with 9 additions and 0 deletions

View File

@ -668,6 +668,15 @@ sub main() {
logger (\%Config, $Config{'rb_product_name'} . ' Server restarting (' . $@ . ') in 5 seconds.', 1);
pandora_load_config (\%Config);
if (enterprise_load (\%Config) == 0) {
$Config{'__enterprise_enabled'} = 0;
print_message (\%Config, " [*] Pandora FMS Enterprise module not available.", 1);
logger (\%Config, " [*] Pandora FMS Enterprise module not available.", 1);
} else {
$Config{'__enterprise_enabled'} = 1;
print_message (\%Config, " [*] " . pandora_get_initial_product_name() . " Enterprise module loaded.", 1);
logger (\%Config, " [*] " . pandora_get_initial_product_name() . " Enterprise module loaded.", 1);
}
pandora_restart (5);
}
$test_remote = 0;