From d1f4e2c907bb5fa003fcc0e749ac5d67821a0cbb Mon Sep 17 00:00:00 2001 From: alvations Date: Thu, 25 May 2017 13:14:30 +0800 Subject: [PATCH] kill specifically stanford corenlp server --- jenkins.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jenkins.sh b/jenkins.sh index 98c39bc50b..cef82c1740 100755 --- a/jenkins.sh +++ b/jenkins.sh @@ -23,7 +23,7 @@ if [[ ! -d ${stanford_corenlp_package_name} ]]; then rm ${stanford_corenlp_package_zip_name} ln -s ${stanford_corenlp_package_name} 'stanford-corenlp' # Kill all Java instances. - pkill -f 'java ' + pkill -f '*edu.stanford.nlp.pipeline.StanfordCoreNLPServer*' cd stanford-corenlp nohup java -mx4g -cp "*" edu.stanford.nlp.pipeline.StanfordCoreNLPServer -port 9000 -timeout 15000 & # Log the job ID and kill it before the end.