Skip to content

Commit

Permalink
tetragon: limit systemd from restarting the service
Browse files Browse the repository at this point in the history
Signed-off-by: Djalal Harouni <[email protected]>
  • Loading branch information
tixxdz committed Oct 23, 2023
1 parent 5b81399 commit 9ede228
Showing 1 changed file with 13 additions and 0 deletions.
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

0 comments on commit 9ede228

Please sign in to comment.