additional logging when process fails to start

pull/22/head
binhex 6 years ago
parent 54e6fe74a3
commit 280483878b

@ -19,8 +19,9 @@ if [[ "${qbittorrent_running}" == "false" ]]; then
retry_count=$((retry_count-1)) retry_count=$((retry_count-1))
if [ "${retry_count}" -eq "0" ]; then if [ "${retry_count}" -eq "0" ]; then
echo "[warn] Wait for qBittorrent process to start aborted" echo "[warn] Wait for qBittorrent process to start aborted, too many retries"
break echo "[warn] Showing output from command before exit..."
timeout 10 yes | /usr/bin/qbittorrent-nox --webui-port="${WEBUI_PORT}" --profile=/config ; exit 1
else else
@ -47,6 +48,8 @@ if [[ "${qbittorrent_running}" == "false" ]]; then
sleep 0.1 sleep 0.1
done done
echo "[info] qBittorrent process listening on port ${WEBUI_PORT}"
fi fi
# change incoming port using the qbittorrent api - note this requires anonymous authentication via webui # change incoming port using the qbittorrent api - note this requires anonymous authentication via webui

Loading…
Cancel
Save