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
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions install/linux-tarball/systemd/tetragon.service
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,19 @@ DefaultDependencies=no
After=network.target local-fs.target
Documentation=https://tetragon.io/

# 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.

# Burst times withing the interval
StartLimitBurst=10
# The interval where starting the service again is not allowed anymore.
StartLimitIntervalSec=2min

[Service]
Environment="PATH=/usr/local/lib/tetragon/:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
User=root
Expand Down
Loading