Automatically configure sunshine.service during build

This commit is contained in:
loki
2020-01-30 16:09:13 +01:00
parent 58e0ee4ade
commit 7f1b157a5d
3 changed files with 8 additions and 3 deletions
+13
View File
@@ -0,0 +1,13 @@
[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