From 541031380d6cb27091a0ad892a63addef6074f32 Mon Sep 17 00:00:00 2001 From: Timo Pollmeier Date: Thu, 1 Apr 2021 14:23:15 +0200 Subject: [PATCH] Add --feed-lock-timeout option This new option sets a number of seconds to retry for if the feed is locked in contexts (like migration or rebuilds) that do not retry on their own (like automatic syncs). This is intended to help automated upgrades of GVM modules where ospd-openvas needs to be restarted, which locks the feed while the VTs are reloaded. --- doc/gvmd.8 | 6 ++-- doc/gvmd.8.xml | 10 ++++++ doc/gvmd.html | 6 ++++ src/gvmd.c | 10 ++++++ src/manage.c | 76 +++++++++++++++++++++++++++++++++++++++- src/manage.h | 9 +++++ src/manage_sql_nvts.c | 2 +- src/manage_sql_secinfo.c | 2 +- 8 files changed, 115 insertions(+), 6 deletions(-) diff --git a/doc/gvmd.8 b/doc/gvmd.8 index 9276b311f5..996cce5ba0 100644 --- a/doc/gvmd.8 +++ b/doc/gvmd.8 @@ -61,6 +61,9 @@ Disable task scheduling. \fB--feed-lock-path=\fIPATH\fB\f1 Sets the path to the feed lock file. .TP +\fB--feed-lock-timeout=\fITIMEOUT\fB\f1 +Sets the number of seconds to retry for if the feed is locked in contexts (like migration or rebuilds) that do not retry on their own (like automatic syncs). Defaults to 0. +.TP \fB-f, --foreground\f1 Run in foreground. .TP @@ -182,9 +185,6 @@ Time out tasks that are more than TIME minutes overdue. -1 to disable, 0 for min \fB--secinfo-commit-size=\fINUMBER\fB\f1 During CERT and SCAP sync, commit updates to the database every NUMBER items, 0 for unlimited. .TP -\fB--slave-commit-size=\fINUMBER\fB\f1 -During slave updates, commit after every NUMBER updated results and hosts, 0 for unlimited. -.TP \fB-c, --unix-socket=\fIFILENAME\fB\f1 Listen on UNIX socket at FILENAME. .TP diff --git a/doc/gvmd.8.xml b/doc/gvmd.8.xml index 6107f13c48..0266579d47 100644 --- a/doc/gvmd.8.xml +++ b/doc/gvmd.8.xml @@ -149,6 +149,16 @@ along with this program. If not, see .

Sets the path to the feed lock file.

+