Emergency bugfix for killYACY.sh as the file yacy00.log does not exist

in case that a too many open files error exist. In such a case, the file
yacy00.log does not exist but only the file yacy00.log.lck.
In the long term a different solution should be addressed.
pull/1/head
Michael Peter Christen 11 years ago
parent ee92d748b5
commit 6b0e62ec59

@ -4,10 +4,13 @@
# To stop YaCy, use stopYACY.sh
cd `dirname $0`
PID=`fuser DATA/LOG/yacy00.log.lck | awk '{print $1}'`
echo "process-id is " $PID
kill -3 $PID
kill -9 $PID
PID=`fuser DATA/LOG/yacy00.log | awk '{print $1}'`
echo "process-id is " $PID
kill -3 $PID
kill -9 $PID
rm -f DATA/yacy.running
echo "killed pid " $PID ", YaCy terminated"
echo "killed pid " $PID ", YaCy terminated"
Loading…
Cancel
Save