mirror of
https://github.com/MarekWo/mc-webui.git
synced 2026-03-28 17:42:45 +01:00
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>
21 lines
520 B
Desktop File
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
|