Page MenuHomeDevCentral

Handle .geoipupdate lock file
ClosedPublic

Authored by dereckson on Mar 16 2023, 19:14.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Apr 24, 21:48
Unknown Object (File)
Mon, Apr 22, 22:39
Unknown Object (File)
Mon, Apr 22, 22:09
Unknown Object (File)
Sun, Apr 21, 22:44
Unknown Object (File)
Sat, Apr 20, 13:06
Unknown Object (File)
Fri, Apr 19, 05:37
Unknown Object (File)
Fri, Apr 19, 04:33
Unknown Object (File)
Thu, Apr 18, 03:09
Subscribers
None

Details

Summary

The geoipupdate client creates a lockfile to avoid race conditions.

Drawbacks of the current method is:

  • no lock file created at first run
  • can be confusing to see it afterwards

To address both those concerns, the wrapper creates and deletes
this lock file before and after the container run.

Reference: https://github.com/maxmind/geoipupdate-legacy/issues/79

Test Plan

Tested on docker-002

Diff Detail

Repository
rOPS Nasqueron Operations
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

This revision is now accepted and ready to land.Mar 16 2023, 19:15
This revision was automatically updated to reflect the committed changes.