summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xstopYACY.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/stopYACY.sh b/stopYACY.sh
index 3b45c134a..2385ad0d0 100755
--- a/stopYACY.sh
+++ b/stopYACY.sh
@@ -32,3 +32,10 @@ else
echo "Neither wget nor java could be found or are not executable."
echo "Visit http://localhost:$port/Steering.html?shutdown=true to stop YaCy or (in emergency case) use ./killYACY.sh"
fi
+
+# wait until the yacy.running file disappears which means that YaCy has terminated
+# If you don't want to wait, just run this concurrently
+while [ -f "DATA/yacy.running" ]
+do
+sleep 1
+done