Skip to content

Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance

Relevant message when using the stop script while YaCy is not running

lucciomand167b14ab6f5
diff --git a/stopYACY.sh b/stopYACY.sh
index 9d256bcae..557db43b7 100755
--- a/stopYACY.sh
+++ b/stopYACY.sh
@@ -15,6 +15,11 @@ if [ ! -d "$YACY_DATA_PATH" ]; then
exit 2
fi
+if [ ! -f "$YACY_DATA_PATH/yacy.running" ]; then
+ echo "No YaCy server appears to be running on DATA folder at : $YACY_DATA_PATH"
+ exit 1
+fi
+
(bin/protectedPostApiCall.sh "Steering.html" "shutdown=true" && \
echo "Please wait until the YaCy daemon process terminates [wget]" && \
echo "You can monitor this with 'tail -f $YACY_DATA_PATH/LOG/yacy00.log' and 'fuser $YACY_DATA_PATH/LOG/yacy00.log'") || \