FreeBSD Bugzilla – Attachment 212145 Details for
Bug 244595
textproc/elasticsearch6 does not start with read-only /usr/local/etc
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
patch for startup script to define path to temporary files
elasticsearch6.patch (text/plain), 1.49 KB, created by
wolfgang
on 2020-03-04 15:30:39 UTC
(
hide
)
Description:
patch for startup script to define path to temporary files
Filename:
MIME Type:
Creator:
wolfgang
Created:
2020-03-04 15:30:39 UTC
Size:
1.49 KB
patch
obsolete
>*** files/elasticsearch.in.orig Sat Oct 5 10:13:58 2019 >--- files/elasticsearch.in Wed Mar 4 15:43:53 2020 >*************** >*** 19,24 **** >--- 19,26 ---- > # Set it to the config file location. > # elasticsearch_java_home (path): Set to %%JAVA_HOME%% by default. > # Set it to the root of the JDK to use. >+ # elasticsearch_tmp (path): Set to /var/tmp/elasticsearch by default. >+ # Set it to the path to be used for temp files. > # > . /etc/rc.subr > >*************** >*** 33,38 **** >--- 35,41 ---- > : ${elasticsearch_config=%%PREFIX%%/etc/elasticsearch} > : ${elasticsearch_login_class=root} > : ${elasticsearch_java_home="%%JAVA_HOME%%"} >+ : ${elasticsearch_tmp=/var/tmp/elasticsearch} > > required_files="${elasticsearch_config}/elasticsearch.yml" > _pidprefix=/var/run/elasticsearch/elasticsearch >*************** >*** 46,56 **** >--- 49,61 ---- > command_args="-d --pidfile=${pidfile}" > > export ES_PATH_CONF=${elasticsearch_config} >+ export ES_TMPDIR=${elasticsearch_tmp} > export JAVA_HOME=${elasticsearch_java_home} > > elasticsearch_precmd() > { > /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 ${elasticsearch_tmp} > /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 > }
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 244595
: 212145