mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-06-17 12:59:13 +02:00
Two independent failure modes can cause the restart loop on arm64: 1. /dev/stdout may be inaccessible in some ARM container runtimes; replaced with /proc/1/fd/1 which LSIO images already use for direct container stdout. 2. s6-notifyoncheck writes to fd 3 on check success, but s6-rc only opens that fd when notification-fd exists in the service directory. LSIO arm64 images ship svc-qbittorrent without it, so s6-notifyoncheck exits with EBADF and s6 restarts the service in a loop. Guard with a file check and fall back to exec'ing qbittorrent-nox directly when the file is absent. https://claude.ai/code/session_01F16ThtZyfXj6ZKFPkrSAAq