From b243ac5f5c83c4f232328b51f78c3dbc33084f21 Mon Sep 17 00:00:00 2001 From: Landon Abney Date: Sun, 24 Feb 2019 13:53:34 -0800 Subject: [PATCH] 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. --- init-scripts/init.systemd | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/init-scripts/init.systemd b/init-scripts/init.systemd index 0afce887..8e300d63 100644 --- a/init-scripts/init.systemd +++ b/init-scripts/init.systemd @@ -44,8 +44,6 @@ # # - Uncomment the two lines Restart= and RestartSec= below to allow Tautulli # 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] Description=Tautulli - Stats for Plex Media Server usage @@ -60,6 +58,8 @@ User=tautulli Group=tautulli # Restart=on-abnormal # RestartSec=5 +StartLimitInterval=90 +StartLimitBurst=3 [Install] WantedBy=multi-user.target