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

Prevent osquery instance restarts while instance is still launching #1778

Conversation

RebeccaMahany
Copy link
Contributor

It is possible for e.g. control server flags to change while the osquery instance is still launching, which would prompt a call to runner.Restart. Through testing, this can sometimes put the osquery runner in a bad state, where the instance isn't running and it doesn't attempt to launch a new one.

To prevent this, we use the preexisting instance lock during initial instance launch, which will pause the runner.Restart call until the lock is free again.

@RebeccaMahany RebeccaMahany added this pull request to the merge queue Jul 16, 2024
Merged via the queue into kolide:main with commit 2de0df2 Jul 16, 2024
32 checks passed
@RebeccaMahany RebeccaMahany deleted the becca/osquery-runner-restart-only-when-running branch July 16, 2024 17:43
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