diff options
author | Jimmy Olgeni <olgeni@FreeBSD.org> | 2015-05-03 19:44:06 +0000 |
---|---|---|
committer | Jimmy Olgeni <olgeni@FreeBSD.org> | 2015-05-03 19:44:06 +0000 |
commit | 972d70e5db811eb65c0fc569e35ba76da8a5a149 (patch) | |
tree | 27696f314d7bab3707cb7263fa386849facc9c7b /textproc/elasticsearch | |
parent | - Use USE_OPENSSL (diff) |
Fix pidfile check when jps does not return full process information.
PR: 197595 (comment)
Submitted by: cheffo@freebsd-bg.org
Diffstat (limited to 'textproc/elasticsearch')
-rw-r--r-- | textproc/elasticsearch/Makefile | 1 | ||||
-rw-r--r-- | textproc/elasticsearch/files/elasticsearch.in | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/textproc/elasticsearch/Makefile b/textproc/elasticsearch/Makefile index a44524fda68b..261904fbff03 100644 --- a/textproc/elasticsearch/Makefile +++ b/textproc/elasticsearch/Makefile @@ -3,6 +3,7 @@ PORTNAME= elasticsearch PORTVERSION= 1.5.1 +PORTREVISION= 1 CATEGORIES= textproc java devel MASTER_SITES= http://download.elasticsearch.org/${PORTNAME}/${PORTNAME}/ \ http://mirrors.rit.edu/zi/ diff --git a/textproc/elasticsearch/files/elasticsearch.in b/textproc/elasticsearch/files/elasticsearch.in index 8aa38ded0f3e..f6e53ff60f52 100644 --- a/textproc/elasticsearch/files/elasticsearch.in +++ b/textproc/elasticsearch/files/elasticsearch.in @@ -122,7 +122,7 @@ elasticsearch_check_pidfile() { debug "pid file ($_pidfile): no pid in file." return fi - if [ -n "`%%LOCALBASE%%/bin/jps -l | grep -e "^$_pid org.elasticsearch.bootstrap.Elasticsearch\$"`" ]; then + if [ -n "`%%LOCALBASE%%/bin/jps -l | grep -e "^$_pid"`" ]; then echo -n $_pid fi } |