[Unit]
Description=TM GNSS Guard - GPS Spoofing and Jamming Monitor
After=network.target

[Service]
Type=simple
User=pi
WorkingDirectory=/home/pi/tm-gnss-guard
ExecStart=/home/pi/tm-gnss-guard/.venv/bin/python /home/pi/tm-gnss-guard/main.py
Restart=always
RestartSec=10
StandardOutput=append:/home/pi/tm-gnss-guard/gnss_guard.log
StandardError=append:/home/pi/tm-gnss-guard/gnss_guard.log

# Environment
Environment=PYTHONUNBUFFERED=1

[Install]
WantedBy=multi-user.target
