From 85b9a47a0de0b27589eccf033ceb8497d06afc8e Mon Sep 17 00:00:00 2001 From: Landon Abney Date: Fri, 22 Feb 2019 22:39:41 -0800 Subject: [PATCH] Add note on how to restart automatically If Tautulli ever crashes due to a failure of some sort the policies mentioned here will automatically restart it, with the caveat that they will _always_ restart it, even if it is going to crash right away again! --- init-scripts/init.systemd | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/init-scripts/init.systemd b/init-scripts/init.systemd index 040f1121..0afce887 100644 --- a/init-scripts/init.systemd +++ b/init-scripts/init.systemd @@ -41,6 +41,11 @@ # - WantedBy= specifies which target (i.e. runlevel) to start Tautulli for. # multi-user.target equates to runlevel 3 (multi-user text mode) # graphical.target equates to runlevel 5 (multi-user X11 graphical mode) +# +# - 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 @@ -53,6 +58,8 @@ GuessMainPID=no Type=forking User=tautulli Group=tautulli +# Restart=on-abnormal +# RestartSec=5 [Install] WantedBy=multi-user.target