diff --git a/killYACY.sh b/killYACY.sh index e9413e788..a5db0ab42 100755 --- a/killYACY.sh +++ b/killYACY.sh @@ -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" \ No newline at end of file