소스 검색

Kill with SIG_TERM

Innokenty Enikeev 9 년 전
부모
커밋
db53349a9a
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      kill-stale.sh

+ 1 - 1
kill-stale.sh

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