diff options
author | Mark Felder <feld@FreeBSD.org> | 2018-03-20 16:19:08 +0000 |
---|---|---|
committer | Mark Felder <feld@FreeBSD.org> | 2018-03-20 16:19:08 +0000 |
commit | 397fce9114e2517b5f07b7b190959ab2db63e528 (patch) | |
tree | b76be73da8e15a42a13e11853aab81893b046c84 /textproc/elasticsearch6 | |
parent | 27aa66d0761a888e4ae1274946febcbf7afef84c (diff) |
textproc/elasticsearch{5,6}: Pidfiles should be in a writable subdirectory
This fixes issues Elastic has with starting/stopping in some situations
PR: 226800
Notes
Notes:
svn path=/head/; revision=465090
Diffstat (limited to 'textproc/elasticsearch6')
-rw-r--r-- | textproc/elasticsearch6/Makefile | 2 | ||||
-rw-r--r-- | textproc/elasticsearch6/files/elasticsearch.in | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/textproc/elasticsearch6/Makefile b/textproc/elasticsearch6/Makefile index 994c83882f03..874eb1a29843 100644 --- a/textproc/elasticsearch6/Makefile +++ b/textproc/elasticsearch6/Makefile @@ -3,7 +3,7 @@ PORTNAME= elasticsearch PORTVERSION= 6.2.2 -PORTREVISION= 6 +PORTREVISION= 7 CATEGORIES= textproc java devel MASTER_SITES= https://artifacts.elastic.co/downloads/${PORTNAME}/ \ http://mirrors.rit.edu/zi/ diff --git a/textproc/elasticsearch6/files/elasticsearch.in b/textproc/elasticsearch6/files/elasticsearch.in index 25e2e1a8d0ce..3345f1795750 100644 --- a/textproc/elasticsearch6/files/elasticsearch.in +++ b/textproc/elasticsearch6/files/elasticsearch.in @@ -32,7 +32,7 @@ load_rc_config ${name} : ${elasticsearch_login_class=root} required_files="${elasticsearch_config}/elasticsearch.yml" -_pidprefix=/var/run/elasticsearch +_pidprefix=/var/run/elasticsearch/elasticsearch pidfile=${_pidprefix}.pid procname=%%JAVA%% @@ -46,7 +46,7 @@ export ES_PATH_CONF=${elasticsearch_config} elasticsearch_precmd() { - /usr/bin/install -o ${elasticsearch_user} -g ${elasticsearch_group} /dev/null ${pidfile} + /usr/bin/install -d -o ${elasticsearch_user} -g ${elasticsearch_group} -m 755 ${pidfile%/*} /usr/bin/install -d -o ${elasticsearch_user} -g ${elasticsearch_group} -m 755 /var/db/elasticsearch /usr/bin/install -d -o ${elasticsearch_user} -g ${elasticsearch_group} -m 755 /var/log/elasticsearch } |