Add burst failure protection

If the process fails 3 times within 90 seconds of a start attempt 
consider it permanently failed and stop all further attempts to restart 
it automatically.
This commit is contained in:
Landon Abney 2019-02-24 13:53:34 -08:00
parent 85b9a47a0d
commit b243ac5f5c
No known key found for this signature in database
GPG key ID: 3AEE8541ED08A7D9

View file

@ -44,8 +44,6 @@
# #
# - Uncomment the two lines Restart= and RestartSec= below to allow Tautulli # - Uncomment the two lines Restart= and RestartSec= below to allow Tautulli
# to restart if it crashes. # to restart if it crashes.
# Warning! If your setup is broken and Tautulli crashes on startup, these
# lines will cause it to restart forever until you stop it!
[Unit] [Unit]
Description=Tautulli - Stats for Plex Media Server usage Description=Tautulli - Stats for Plex Media Server usage
@ -60,6 +58,8 @@ User=tautulli
Group=tautulli Group=tautulli
# Restart=on-abnormal # Restart=on-abnormal
# RestartSec=5 # RestartSec=5
StartLimitInterval=90
StartLimitBurst=3
[Install] [Install]
WantedBy=multi-user.target WantedBy=multi-user.target