mirror of
https://github.com/lynchaos/ashvale-station.git
synced 2026-09-12 20:52:23 +00:00
27 lines
637 B
Desktop File
27 lines
637 B
Desktop File
[Unit]
|
|
Description=Ashvale Station forecast service
|
|
After=network-online.target
|
|
Wants=network-online.target
|
|
|
|
[Service]
|
|
Type=simple
|
|
User=pi
|
|
WorkingDirectory=/home/pi/weather-station/zero2w-weather
|
|
ExecStart=/home/pi/weather-station/zero2w-weather/.venv/bin/python run.py
|
|
Restart=always
|
|
RestartSec=10
|
|
|
|
# A Zero 2 W has 512 MB. Cap the service so a runaway allocation takes the
|
|
# service down instead of the whole board.
|
|
MemoryMax=280M
|
|
CPUWeight=70
|
|
Nice=5
|
|
|
|
# The SD card is a consumable: keep journald from writing every heartbeat.
|
|
StandardOutput=journal
|
|
StandardError=journal
|
|
SyslogIdentifier=ashvale
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|