Sunshine/assets/sunshine.service

14 lines
312 B
SYSTEMD
Raw Normal View History

2019-12-04 18:05:03 +00:00
[Unit]
2019-12-08 17:55:58 +00:00
Description=Sunshine Gamestream Server for Moonlight
2019-12-04 18:05:03 +00:00
[Service]
WorkingDirectory=/home/%u
Environment="DISPLAY=:0"
Type=simple
2019-12-08 17:55:58 +00:00
# wait for Xorg
2019-12-04 18:05:03 +00:00
ExecStartPre=/bin/sh -c 'while ! pgrep Xorg; do sleep 2; done'
ExecStart=/home/%u/Github/sunshine/cmake-build-release/sunshine
[Install]
WantedBy=default.target