Add systemd service file

This commit is contained in:
sqozz 2021-11-18 18:34:24 +01:00
parent eb15218f47
commit f0936303bf

View file

@ -0,0 +1,14 @@
[Unit]
Description=Service to serve play.geekify.de
After=network.target
[Service]
Type=simple
User=minecraft
WorkingDirectory=/opt/minecraft/webui/play.geekify.de/homepage
Environment=PYTHONPATH=/opt/minecraft/webui/play.geekify.de/homepage/venv
ExecStart=/opt/minecraft/webui/play.geekify.de/venv/bin/python /opt/minecraft/webui/play.geekify.de/homepage/main.py
Restart=on-failure
[Install]
WantedBy=multi-user.target