[Unit] Description=Fusion Plating IoT — DS18B20 poller After=network-online.target Wants=network-online.target [Service] Type=simple ExecStart=/usr/bin/python3 /usr/local/bin/fp_iot_poller.py Restart=on-failure RestartSec=5 User=fp Group=fp # Poller only needs read access to /sys/bus/w1 + /etc/fp-iot; everything # else locked down. NoNewPrivileges=true ProtectSystem=strict ProtectHome=true PrivateTmp=true ReadOnlyPaths=/sys/bus/w1 /etc/fp-iot # Journal-only logging — use `journalctl -u fp-iot-poller -f` to tail StandardOutput=journal StandardError=journal [Install] WantedBy=multi-user.target