Browse Source

Add systemd service file

master
sqozz 6 months ago
parent
commit
f0936303bf
  1. 14
      contrib/minecraft-homepage.service

14
contrib/minecraft-homepage.service

@ -0,0 +1,14 @@ @@ -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
Loading…
Cancel
Save