diff --git a/etc/systemd/system/syncplay-server.service b/etc/systemd/system/syncplay-server.service index bc61b774..31cda083 100644 --- a/etc/systemd/system/syncplay-server.service +++ b/etc/systemd/system/syncplay-server.service @@ -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