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
commit d33e3a2882
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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