Skip to content

Commit

Permalink
Relevant message when using the stop script while YaCy is not running
Browse files Browse the repository at this point in the history
  • Loading branch information
luccioman committed Feb 5, 2019
1 parent 7a30bce commit d167b14
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions stopYACY.sh
Expand Up @@ -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'") || \
Expand Down

0 comments on commit d167b14

Please sign in to comment.