diff --git a/rootfs/usr/local/etc/docker/init.d/03-tor-server.sh b/rootfs/usr/local/etc/docker/init.d/03-tor-server.sh index 9f7bc4f..539ab27 100755 --- a/rootfs/usr/local/etc/docker/init.d/03-tor-server.sh +++ b/rootfs/usr/local/etc/docker/init.d/03-tor-server.sh @@ -354,7 +354,11 @@ __post_execute() { ( # commands to execute while :; do - pgrep -q unbound && break || sleep 30 + if pgrep unbound >/dev/null 2>&1;then + break + else + sleep 30 + fi done # show message __banner "$postMessageST"