mirror of
https://github.com/LizardByte/Sunshine.git
synced 2024-11-17 08:09:50 +00:00
14 lines
285 B
SYSTEMD
14 lines
285 B
SYSTEMD
[Unit]
|
|
Description=Sunshine Gamestream Server for Moonlight
|
|
|
|
[Service]
|
|
WorkingDirectory=/home/%u
|
|
Environment="DISPLAY=:0"
|
|
Type=simple
|
|
# wait for Xorg
|
|
ExecStartPre=/bin/sh -c 'while ! pgrep Xorg; do sleep 2; done'
|
|
ExecStart=@SUNSHINE_EXECUTABLE_PATH@
|
|
|
|
[Install]
|
|
WantedBy=default.target
|