1
0
Pārlūkot izejas kodu

Kill with SIG_TERM

Innokenty Enikeev 9 gadi atpakaļ
vecāks
revīzija
db53349a9a
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1 1
      kill-stale.sh

+ 1 - 1
kill-stale.sh

@@ -6,4 +6,4 @@
 DIR="$(dirname "$0")"
 DIR="$(dirname "$0")"
 test `find "$DIR/.watchdog" -mmin +2` || exit
 test `find "$DIR/.watchdog" -mmin +2` || exit
 # Kill exising process
 # Kill exising process
-pid=`lsof -iTCP:4016 -sTCP:LISTEN -t` && kill $pid
+pid=`lsof -iTCP:4016 -sTCP:LISTEN -t` && kill -9 $pid