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

systemd:service: limit restarts #1637

Merged

Conversation

tixxdz
Copy link
Member

@tixxdz tixxdz commented Oct 23, 2023

tetragon: limit systemd from restarting the service

Do not restart the service anymore if it was started more than
10 times withing a 2 minutes interval.
This allows to cover restart on failures but also gives users
the possibility to manually restart the service within those
limits.
On failures, users can do "systemctl reset-failed tetragon" to
flush the counters and allow the service to start again.

Goes on top #1636 or just merge it into it.

Signed-off-by: Djalal Harouni <tixxdz@gmail.com>
@tixxdz tixxdz requested a review from a team as a code owner October 23, 2023 12:32
@tixxdz tixxdz requested review from tpapagian and removed request for a team October 23, 2023 12:32
@tixxdz tixxdz merged commit 14c353e into pr/tixxdz/systemd-fixes Oct 23, 2023
24 checks passed
@tixxdz tixxdz deleted the pr/tixxdz/systemd-service-improvements branch October 23, 2023 15:21
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