Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Simplify sync lockfile handling #1059

Merged
merged 13 commits into from
May 6, 2020

Conversation

timopollmeier
Copy link
Member

@timopollmeier timopollmeier commented Apr 24, 2020

The various sync actions will now use a common, configurable lockfile and
some of the lock handling code for syncs in gvmd has been simplified.

Checklist:

This option will be used to change the path to the feed lock file
These functions use the path set with --feed-lock-path and also write
and clear the contents of the file.
The functions update_secinfo and rebuild_scap now use these and
the timestamp no longer has to be set in update_scap and update_cert.
This is no longer needed with the common lockfile for all sync
operations.
It is no longer needed because the lockfile is now cleared as part of
the unlocking.
They are no longer used in sync_cert, sync_scap and update_scap as the
feed_lockfile_lock calls will handle writing the timestamp.
The scripts now use GVM_FEED_LOCK_PATH set by CMake and are configurable
by setting the LOCK_PATH environment variable.
manage_update_nvt_cache_osp and manage_rebuild now also use this file
and the messages have been adjusted.
@timopollmeier timopollmeier marked this pull request as ready for review May 5, 2020 10:30
@timopollmeier timopollmeier requested a review from mattmundell as a code owner May 5, 2020 10:30
Copy link
Contributor

@mattmundell mattmundell left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice change.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants