From 7effb3cb97244c0905187b8545ee64385d33ee0f Mon Sep 17 00:00:00 2001 From: MarkusMcNugen Date: Sun, 4 Feb 2018 20:48:39 -0500 Subject: [PATCH] Update start.sh --- qbittorrent/start.sh | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/qbittorrent/start.sh b/qbittorrent/start.sh index e504e2a..eb749d9 100644 --- a/qbittorrent/start.sh +++ b/qbittorrent/start.sh @@ -28,8 +28,10 @@ chmod -R 755 /config/qBittorrent 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 - _handler +while true; do + if [ -e /proc/$child ]; then + sleep 0.1 + else + _handler + fi done