Skip to content

Commit

Permalink
instead of WAITING lines, WAITING FOR STOP and dots are echoed
Browse files Browse the repository at this point in the history
  • Loading branch information
okybaca committed Aug 9, 2023
1 parent c382485 commit 2838503
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions stopYACY.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,15 @@ fi

(bin/apicall.sh "Steering.html?shutdown=true" > /dev/null && \
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'") || \
echo "You can monitor this with 'tail -F $YACY_DATA_PATH/LOG/yacy00.log' or 'fuser $YACY_DATA_PATH/LOG/yacy00.log'") || \
exit $?

# wait until the yacy.running file disappears which means that YaCy has terminated
# If you don't want to wait, just run this concurrently

echo "WAITING FOR STOP"
while [ -f "$YACY_DATA_PATH/yacy.running" ]
do
echo "WAITING"
echo -n "."
sleep 1
done

0 comments on commit 2838503

Please sign in to comment.