mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-06-02 22:04:06 +02:00
Merge pull request #2698 from alexbelgium/claude/fix-qbittorrent-banner-jLDDU
Fix qBittorrent restart loop: dynamic binary discovery and remove s6-notifyoncheck
This commit is contained in:
@@ -1,4 +1,7 @@
|
|||||||
|
|
||||||
|
## 5.2.0-2 (2026-05-10)
|
||||||
|
- Fix qBittorrent restart loop: remove s6-notifyoncheck (avoids notification-fd EBADF crash) and discover binary path dynamically across LSIO image layouts
|
||||||
|
|
||||||
## 5.2.0-1 (2026-05-10)
|
## 5.2.0-1 (2026-05-10)
|
||||||
- Fix qbittorrent-nox path (/usr/bin → /app) after LSIO image update
|
- Fix qbittorrent-nox path (/usr/bin → /app) after LSIO image update
|
||||||
|
|
||||||
|
|||||||
@@ -143,4 +143,4 @@ schema:
|
|||||||
slug: qbittorrent
|
slug: qbittorrent
|
||||||
udev: true
|
udev: true
|
||||||
url: https://github.com/alexbelgium/hassio-addons
|
url: https://github.com/alexbelgium/hassio-addons
|
||||||
version: "5.2.0-1"
|
version: "5.2.0-2"
|
||||||
|
|||||||
@@ -42,8 +42,20 @@ if bashio::config.true 'silent'; then
|
|||||||
QB_OUTPUT="/dev/null"
|
QB_OUTPUT="/dev/null"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Find qbittorrent-nox binary across different LSIO image layouts
|
||||||
|
QB_BIN=""
|
||||||
|
for candidate in /app/qbittorrent-nox /usr/bin/qbittorrent-nox /usr/local/bin/qbittorrent-nox; do
|
||||||
|
if [[ -x "${candidate}" ]]; then
|
||||||
|
QB_BIN="${candidate}"
|
||||||
|
break
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
|
||||||
|
if [[ -z "${QB_BIN}" ]]; then
|
||||||
|
bashio::log.fatal "qbittorrent-nox binary not found"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
bashio::log.info "Starting qBittorrent..."
|
bashio::log.info "Starting qBittorrent..."
|
||||||
|
|
||||||
exec \
|
exec s6-setuidgid abc "${QB_BIN}" --webui-port="${WEBUI_PORT}" > "${QB_OUTPUT}"
|
||||||
s6-notifyoncheck -d -n 300 -w 1000 -c "nc -z localhost ${WEBUI_PORT}" \
|
|
||||||
s6-setuidgid abc /app/qbittorrent-nox --webui-port="${WEBUI_PORT}" > "${QB_OUTPUT}"
|
|
||||||
|
|||||||
Reference in New Issue
Block a user