From 280483878b98ad38d7217627f50f8fbe9d3dc81e Mon Sep 17 00:00:00 2001 From: binhex Date: Tue, 23 Apr 2019 18:03:20 +0100 Subject: [PATCH] additional logging when process fails to start --- run/nobody/qbittorrent.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/run/nobody/qbittorrent.sh b/run/nobody/qbittorrent.sh index dad6d4f..3f09b5c 100644 --- a/run/nobody/qbittorrent.sh +++ b/run/nobody/qbittorrent.sh @@ -19,8 +19,9 @@ if [[ "${qbittorrent_running}" == "false" ]]; then retry_count=$((retry_count-1)) if [ "${retry_count}" -eq "0" ]; then - echo "[warn] Wait for qBittorrent process to start aborted" - break + echo "[warn] Wait for qBittorrent process to start aborted, too many retries" + echo "[warn] Showing output from command before exit..." + timeout 10 yes | /usr/bin/qbittorrent-nox --webui-port="${WEBUI_PORT}" --profile=/config ; exit 1 else @@ -47,6 +48,8 @@ if [[ "${qbittorrent_running}" == "false" ]]; then sleep 0.1 done + echo "[info] qBittorrent process listening on port ${WEBUI_PORT}" + fi # change incoming port using the qbittorrent api - note this requires anonymous authentication via webui