diff --git a/docs/source/about/usage.rst b/docs/source/about/usage.rst index e48aa1fc..7861e523 100644 --- a/docs/source/about/usage.rst +++ b/docs/source/about/usage.rst @@ -87,9 +87,13 @@ Sunshine needs access to `uinput` to create mouse and gamepad events. [Unit] Description=Sunshine self-hosted game stream host for Moonlight. + StartLimitIntervalSec=500 + StartLimitBurst=5 [Service] ExecStart= + Restart=on-failure + RestartSec=5s #Flatpak Only #ExecStop=flatpak kill dev.lizardbyte.sunshine diff --git a/sunshine.service.in b/sunshine.service.in index 157b3a4d..965b7871 100644 --- a/sunshine.service.in +++ b/sunshine.service.in @@ -1,8 +1,12 @@ [Unit] Description=@PROJECT_DESCRIPTION@ +StartLimitIntervalSec=500 +StartLimitBurst=5 [Service] ExecStart=@SUNSHINE_EXECUTABLE_PATH@ +Restart=on-failure +RestartSec=5s [Install] WantedBy=graphical-session.target