21 lines
407 B
Desktop File
21 lines
407 B
Desktop File
# weather-station@.service
|
|
|
|
[Unit]
|
|
Description=E-Ink Weather Station Daemon
|
|
After=network-online.target
|
|
Wants=network-online.target
|
|
|
|
[Service]
|
|
User=%i
|
|
Group=%i
|
|
|
|
WorkingDirectory=/home/%i/weather-station
|
|
ExecStart=/home/%i/weather-station/.venv/bin/python /home/%i/weather-station/main.py
|
|
|
|
# Auto-restart logic
|
|
Restart=always
|
|
RestartSec=10
|
|
Environment=PYTHONUNBUFFERED=1
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target |