Project

General

Profile

Actions

Optimization #1277

closed

Trigger second live rule-reload while first one is in progress

Added by Andreas Herz over 9 years ago. Updated over 7 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Target version:
Effort:
Difficulty:
Label:

Description

We have some autotests in which i'm testing suricata now, before we want to take it into productive mode.
There are some scripts that trigger a USR2 signal because the .yaml has changed, for example the HOME_NET var changed because of the ppp0 device receiving a new IP.
The problem is, that it could happen that the script is called again because the ppp0 device reveived a newer IP and triggers USR2 again.
Depending on the ruleset and system the live rule-reload from the first time might not have finished yet, so the second USR2 is just going to be "rejected".

I would suggest that the second USR2 signal is stored and after the first reload is completed the second one should reload to make sure the proper IP is in HOME_NET.

An alternative would be some way to detect if the rule-reload is still in progress, so a script could wait. Having a logwatch is one possibility, but kinda messy.

Actions

Also available in: Atom PDF