poe_web.service
This commit is contained in:
16
etc/systemd/system/poe_web.service
Normal file
16
etc/systemd/system/poe_web.service
Normal file
@@ -0,0 +1,16 @@
|
||||
[Unit]
|
||||
Description=PoE Manager Web App
|
||||
After=network.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
User=root
|
||||
WorkingDirectory=/srv/poe_manager
|
||||
# Nutze die virtuelle Umgebung
|
||||
ExecStart=/srv/poe_manager/venv/bin/python3 /srv/poe_manager/app.py
|
||||
Restart=always
|
||||
RestartSec=5
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
|
||||
Reference in New Issue
Block a user