yacy_search_server/stopYACY.sh
luccioman c32ac9c4c7 Updated log path in informative message of stop script.
As highlighted by @Lew-Rockwell-Fan in issue #140, the two log paths
mentioned by the stopYACY.sh script were inconsistent.
2017-11-14 09:17:43 +01:00

16 lines
484 B
Bash
Executable File

#!/usr/bin/env sh
cd `dirname $0`
(bin/protectedPostApiCall.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 DATA/LOG/yacy00.log' and 'fuser DATA/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
while [ -f "DATA/yacy.running" ]
do
sleep 1
done