Restart the systemd service in case of a crash (#830)
This commit is contained in:
@@ -87,9 +87,13 @@ Sunshine needs access to `uinput` to create mouse and gamepad events.
|
|||||||
|
|
||||||
[Unit]
|
[Unit]
|
||||||
Description=Sunshine self-hosted game stream host for Moonlight.
|
Description=Sunshine self-hosted game stream host for Moonlight.
|
||||||
|
StartLimitIntervalSec=500
|
||||||
|
StartLimitBurst=5
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
ExecStart=<see table>
|
ExecStart=<see table>
|
||||||
|
Restart=on-failure
|
||||||
|
RestartSec=5s
|
||||||
#Flatpak Only
|
#Flatpak Only
|
||||||
#ExecStop=flatpak kill dev.lizardbyte.sunshine
|
#ExecStop=flatpak kill dev.lizardbyte.sunshine
|
||||||
|
|
||||||
|
|||||||
@@ -1,8 +1,12 @@
|
|||||||
[Unit]
|
[Unit]
|
||||||
Description=@PROJECT_DESCRIPTION@
|
Description=@PROJECT_DESCRIPTION@
|
||||||
|
StartLimitIntervalSec=500
|
||||||
|
StartLimitBurst=5
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
ExecStart=@SUNSHINE_EXECUTABLE_PATH@
|
ExecStart=@SUNSHINE_EXECUTABLE_PATH@
|
||||||
|
Restart=on-failure
|
||||||
|
RestartSec=5s
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=graphical-session.target
|
WantedBy=graphical-session.target
|
||||||
|
|||||||
Reference in New Issue
Block a user