mirror of
https://github.com/yacy/yacy_search_server.git
synced 2024-09-21 00:00:13 +02:00
6b0e62ec59
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.
16 lines
374 B
Bash
Executable File
16 lines
374 B
Bash
Executable File
#!/bin/sh
|
|
|
|
# THIS IS ONLY FOR EMERGENCY CASES
|
|
# 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" |