systemd/syncplay-server.service: use venv

Resolves: #145

Thanks again @EchedeyLR
This commit is contained in:
Aminda Suomalainen 2023-09-29 10:57:06 +03:00
parent a4b7bdb51a
commit c32910df57
Signed by: Mikaela
SSH Key Fingerprint: SHA256:CXLULpqNBdUKB6E6fLA1b/4SzG0HvKD19PbIePU175Q
1 changed files with 2 additions and 1 deletions

View File

@ -3,7 +3,8 @@ Description=Syncplay server
After=network.target
[Service]
ExecStart=/opt/syncplay/syncplayServer.py --port 1234 --motd-file /opt/syncplay/motd.txt --salt autogenerated-by-running-without-this-flag-CHANGEME --password NotInThisConfigFileNotSorry --tls /opt/syncplay/ssl
Environment=PATH=/opt/syncplay/venv/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games
ExecStart=/opt/syncplay/venv/bin/python3 /opt/syncplay/syncplayServer.py --port 1234 --motd-file /opt/syncplay/motd.txt --salt autogenerated-by-running-without-this-flag-CHANGEME --password NotInThisConfigFileNotSorry --tls /opt/syncplay/ssl
Restart=always
User=syncplay