From c5555b2ebc4c2285fb40d3a1a22c1966820bc64e Mon Sep 17 00:00:00 2001 From: Ad Schellevis Date: Thu, 8 Feb 2018 21:14:51 +0100 Subject: [PATCH] firewall/aliases, set alias update/check interval to 1 minute and align update to configd call. for https://github.com/opnsense/core/issues/2162 This was a bit forgotten, since the new alias update handles all types of aliases using different expiry intervals, we need to make sure we actually probe our changes in time, otherwise it's impossible to expire dns entries within a reasonable timeframe. --- src/etc/inc/system.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/etc/inc/system.inc b/src/etc/inc/system.inc index f593a55ad..c9843ff00 100644 --- a/src/etc/inc/system.inc +++ b/src/etc/inc/system.inc @@ -1129,7 +1129,7 @@ function system_cron_configure($verbose = false, $defer = false) $autocron[] = generate_cron_job('/usr/local/sbin/expiretable -v -t 3600 sshlockout', '2'); $autocron[] = generate_cron_job('/usr/local/sbin/expiretable -v -t 3600 virusprot', '3'); $autocron[] = generate_cron_job('/usr/local/etc/rc.expireaccounts', '5'); - $autocron[] = generate_cron_job('/usr/local/opnsense/scripts/filter/update_tables.py', '10'); + $autocron[] = generate_cron_job('/usr/local/bin/flock -n -E 0 -o /tmp/filter_update_tables.lock /usr/local/opnsense/scripts/filter/update_tables.py', '*'); /* every now and then */ $autocron[] = generate_cron_job('/usr/local/sbin/ping_hosts.sh', '*/4');