Füge Backend-Autostart-Skript hinzu

This commit is contained in:
2025-03-31 09:45:42 +02:00
parent a082a81c87
commit 347cc931ed
2 changed files with 58 additions and 0 deletions

View File

@@ -0,0 +1,14 @@
[Unit]
Description=MYP Backend Service
After=network.target
[Service]
Type=simple
User=pi
WorkingDirectory=/home/pi/Projektarbeit-MYP/backend
ExecStart=/home/pi/Projektarbeit-MYP/backend/venv/bin/python app.py
Restart=always
RestartSec=10
[Install]
WantedBy=multi-user.target