Files
rpi-temp-humid-monitor/systemd/thmonitor.service.in
T
2026-08-14 23:08:28 +08:00

16 lines
320 B
Plaintext

[Unit]
Description=Raspberry Pi Temperature and Humidity Monitor
After=network-online.target
Wants=network-online.target
[Service]
Type=simple
User=root
WorkingDirectory=@INSTALL_ROOT@
ExecStart=@VENV_PYTHON@ @INSTALL_ROOT@/temp-humid-read-loop.py
Restart=on-failure
RestartSec=10
[Install]
WantedBy=multi-user.target