Flask backend and ui tweaks
This commit is contained in:
19
scripts/smartserow-backend.service.sample
Normal file
19
scripts/smartserow-backend.service.sample
Normal file
@@ -0,0 +1,19 @@
|
||||
[Unit]
|
||||
Description=Smart Serow GPS Backend
|
||||
After=network.target gpsd.service
|
||||
Wants=gpsd.service
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
User=pi
|
||||
Group=pi
|
||||
WorkingDirectory=/opt/smartserow-backend
|
||||
ExecStart=/home/pi/.local/bin/uv run python main.py
|
||||
Restart=always
|
||||
RestartSec=5
|
||||
|
||||
# Environment
|
||||
Environment=PYTHONUNBUFFERED=1
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
Reference in New Issue
Block a user