summaryrefslogtreecommitdiff
path: root/stopYACY.sh
blob: e643bdcb2340751281db6e5382529ed99c78cde9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/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 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