yacy_search_server/stopYACY.sh

15 lines
439 B
Bash
Raw Normal View History

#!/usr/bin/env sh
cd `dirname $0`
2012-09-25 23:20:09 +02:00
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 DATA/LOG/yacy00.log' and 'fuser log/yacy00.log'"
# 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