Files
mc-webui/scripts/watchdog/mc-webui-watchdog.service
MarekWo 2f82c589c7 feat(watchdog): Hardware USB bus reset for stuck LoRa devices
Implement a smart auto-detection and low-level fcntl ioctl reset mechanism for LoRa USB devices. This 'last resort' recovery is triggered if the meshcore-bridge container fails to recover after 3 restarts within an 8-minute window. Includes updates to the installer, systemd service, and newly added README.

Co-Authored-By: Gemini CLI <noreply@google.com>
2026-02-22 20:15:27 +00:00

21 lines
520 B
Desktop File

[Unit]
Description=mc-webui Container Watchdog
Documentation=https://github.com/MarekWo/mc-webui
After=network.target docker.service
Requires=docker.service
[Service]
Type=simple
User=root
Environment=MCWEBUI_DIR=/home/marek/mc-webui
Environment=CHECK_INTERVAL=30
Environment=LOG_FILE=/var/log/mc-webui-watchdog.log
Environment=HTTP_PORT=5051
Environment=USB_DEVICE_PATH=
ExecStart=/usr/bin/python3 -u /home/marek/mc-webui/scripts/watchdog/watchdog.py
Restart=always
RestartSec=10
[Install]
WantedBy=multi-user.target