mirror of
https://github.com/yacy/yacy_search_server.git
synced 2024-09-19 00:01:41 +02:00
c32ac9c4c7
As highlighted by @Lew-Rockwell-Fan in issue #140, the two log paths mentioned by the stopYACY.sh script were inconsistent.
16 lines
484 B
Bash
Executable File
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
|