Make systemd script cleaner
This commit is contained in:
parent
415dec37ad
commit
30496c79ab
1 changed files with 3 additions and 7 deletions
|
|
@ -2,12 +2,8 @@
|
||||||
Description=Sunshine Gamestream Server for Moonlight
|
Description=Sunshine Gamestream Server for Moonlight
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
WorkingDirectory=/home/%u
|
ExecStartPre=/bin/sh -c "test -d %E/sunshine || cp -r '@SUNSHINE_ASSETS_DIR@' '%E/sunshine'"
|
||||||
Environment="DISPLAY=:0"
|
ExecStart=@SUNSHINE_EXECUTABLE_PATH@ %E/sunshine/sunshine.conf
|
||||||
Type=simple
|
|
||||||
# wait for Xorg
|
|
||||||
ExecStartPre=/bin/sh -c 'while ! pgrep Xorg; do sleep 2; done'
|
|
||||||
ExecStart=@SUNSHINE_EXECUTABLE_PATH@
|
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=default.target
|
WantedBy=graphical-session.target
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue