From mboxrd@z Thu Jan 1 00:00:00 1970 From: Michael Tremer To: development@lists.ipfire.org Subject: Re: [PATCH] suricata: Perform ruleset update every 12 hours. Date: Sun, 08 May 2022 17:12:33 +0100 Message-ID: <1A6869C7-B4B3-4AF7-846E-FFA67AF78C95@ipfire.org> In-Reply-To: <20220508132303.4175-1-stefan.schantl@ipfire.org> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============8799314669915506874==" List-Id: --===============8799314669915506874== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Hello Stefan, What happens to firewalls that do not run 24/7? Will this job be performed after 12 hours have passed no matter how long? So = let=E2=80=99s say I shut down a system for a day, would the job run immediate= ly? -Michael > On 8 May 2022, at 14:23, Stefan Schantl wrote: >=20 > Signed-off-by: Stefan Schantl > --- > config/cron/crontab | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) >=20 > diff --git a/config/cron/crontab b/config/cron/crontab > index d61d26619..c42104626 100644 > --- a/config/cron/crontab > +++ b/config/cron/crontab > @@ -62,8 +62,8 @@ HOME=3D/ > # Update location database > %hourly,random * [ -f "/var/ipfire/red/active" ] && /usr/local/bin/update-l= ocation-database >/dev/null 2>&1 >=20 > -# Update surciata rules. > -%daily,random * [ -f "/var/ipfire/red/active" ] && /usr/local/bin/update-i= ds-ruleset >/dev/null 2>&1 > +# Perform a surciata rules update every 12 hours. > +@ 12h [ -f "/var/ipfire/red/active" ] && /usr/local/bin/update-ids-ruleset= >/dev/null 2>&1 >=20 > # Retry sending spooled mails regularly > %hourly * /usr/sbin/dma -q > --=20 > 2.30.2 >=20 --===============8799314669915506874==--