From d167b14ab6f5d0cceee427580667e9867e7cc230 Mon Sep 17 00:00:00 2001 From: luccioman Date: Tue, 5 Feb 2019 09:43:28 +0100 Subject: [PATCH] Relevant message when using the stop script while YaCy is not running --- stopYACY.sh | 5 +++++ 1 file changed, 5 insertions(+) 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'") || \