Bug 244595 - textproc/elasticsearch6 does not start with read-only /usr/local/etc
Summary: textproc/elasticsearch6 does not start with read-only /usr/local/etc
Status: New
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Some People
Assignee: freebsd-elastic mailing list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-03-04 15:30 UTC by wolfgang
Modified: 2020-03-04 20:17 UTC (History)
2 users (show)

See Also:
juraj: maintainer-feedback+


Attachments
patch for startup script to define path to temporary files (1.49 KB, patch)
2020-03-04 15:30 UTC, wolfgang
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description wolfgang 2020-03-04 15:30:39 UTC
Created attachment 212145 [details]
patch for startup script to define path to temporary files

On systems where /usr/local/etc is mounted read-only, elasticsearch6 fails to start because it tries to create temporary files under /usr/local/etc/elasticsearch. The attached patch restores the possibilty to define a path for temporary files, defaulting to /var/tmp/elasticsearch
Comment 1 Juraj Lutter 2020-03-04 15:42:23 UTC
LGTM
Comment 2 wolfgang 2020-03-04 15:49:24 UTC
The patch would also work for textproc/elasticsearch7
Comment 3 wolfgang 2020-03-04 16:36:46 UTC
Unfortunately elasticsearch6 still fails to start on read-only /usr/local/etc after this patch, because it tries to create a temporary keystore in /usr/local/etc/elastic
So this patch is useful to define atory for tempfiles, but does not solve my original problem.