From 0522b4ff91198e50482259c2d2122244e0313416 Mon Sep 17 00:00:00 2001 From: MarkusMcNugen Date: Sun, 4 Feb 2018 20:40:32 -0500 Subject: [PATCH] Update start.sh --- qbittorrent/start.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/qbittorrent/start.sh b/qbittorrent/start.sh index 921f997..692313d 100644 --- a/qbittorrent/start.sh +++ b/qbittorrent/start.sh @@ -23,10 +23,11 @@ if [[ ! -e /config/qBittorrent/config/qBittorrent.conf ]]; then fi echo "[info] Starting qBittorrent daemon..." | ts '%Y-%m-%d %H:%M:%.S' -/bin/bash /etc/qbittorrent/qbittorrent.init start & +/bin/bash /etc/qbittorrent/qbittorrent.init start child=$(pgrep -o -x qbittorrent-nox) echo "[info] qbittorrent-nox PID: $child" | ts '%Y-%m-%d %H:%M:%.S' + while [ -e /proc/$child ]; do sleep 0.1; else