summaryrefslogtreecommitdiff
path: root/killYACY.sh
diff options
context:
space:
mode:
authororbiter <orbiter@6c8d7289-2bf4-0310-a012-ef5d649a1542>2005-04-07 19:19:42 +0000
committerorbiter <orbiter@6c8d7289-2bf4-0310-a012-ef5d649a1542>2005-04-07 19:19:42 +0000
commit248077d3f0da329e3524709d8f080972851a8eaa (patch)
tree368bc5fe907bb7793d5f0297769fc276c4275a02 /killYACY.sh
initial load with yacy 0.36
git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@1 6c8d7289-2bf4-0310-a012-ef5d649a1542
Diffstat (limited to 'killYACY.sh')
-rwxr-xr-xkillYACY.sh13
1 files changed, 13 insertions, 0 deletions
diff --git a/killYACY.sh b/killYACY.sh
new file mode 100755
index 000000000..149513c84
--- /dev/null
+++ b/killYACY.sh
@@ -0,0 +1,13 @@
+#!/bin/sh
+
+# THIS IS ONLY FOR EMERGENCY CASES
+# To stop YaCy, use stopYACY.sh
+
+cd `dirname $0`
+PID=`fuser yacy.log | awk '{print $2}'`
+echo "process-id is " $PID
+kill -3 $PID
+sleep 1
+kill -9 $PID
+echo "killed pid " $PID ", YaCy terminated"
+