Restart the systemd service in case of a crash (#830)

This commit is contained in:
Костадин Дамянов
2023-01-26 16:10:13 +02:00
committed by GitHub
parent bcd5188ac5
commit d33e3a2882
2 changed files with 8 additions and 0 deletions

View File

@@ -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=<see table>
Restart=on-failure
RestartSec=5s
#Flatpak Only
#ExecStop=flatpak kill dev.lizardbyte.sunshine

View File

@@ -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