Add systemd service file
This commit is contained in:
parent
eb15218f47
commit
f0936303bf
14
contrib/minecraft-homepage.service
Normal file
14
contrib/minecraft-homepage.service
Normal 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
|
Loading…
Reference in a new issue