require '/var/ipfire/general-functions.pl';
require "${General::swroot}/location-functions.pl";
+require "${General::swroot}/ids-functions.pl";
require "${General::swroot}/lang.pl";
require "${General::swroot}/header.pl";
# Update configuration files.
&BuildConfiguration();
+
+ # Check if the IDS is running.
+ if(&IDS::ids_is_running()) {
+ # Re-generate the service and ports related file.
+ &IDS::generate_service_ports_file();
+
+ # Re-generate used rulesfiles file.
+ my @enabled_providers = &IDS::get_enabled_providers();
+ &IDS::write_used_rulefiles_file(@enabled_providers);
+
+ # Call suricatactrl to perform a reload.
+ &IDS::call_suricatactrl("reload");
+ }
}
} else {
# Load settings from file.