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.