mirror of
https://github.com/yacy/yacy_search_server.git
synced 2024-09-19 00:01:41 +02:00
add a check script that waits for stopYACY.sh to terminate. That makes
it easier to write control scripts around it. If you want that the script terminates directly as before, call it concurrently or wrap it with 'timeout' like: timeout 10s ./stopYACY.sh to stop after 10 seconds
This commit is contained in:
parent
1cf0f35621
commit
3e5ac15c71
|
@ -32,3 +32,10 @@ else
|
|||
echo "Neither wget nor java could be found or are not executable."
|
||||
echo "Visit http://localhost:$port/Steering.html?shutdown=true to stop YaCy or (in emergency case) use ./killYACY.sh"
|
||||
fi
|
||||
|
||||
# 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
|
||||
|
|
Loading…
Reference in New Issue
Block a user