Bug 244595

Summary: textproc/elasticsearch6 does not start with read-only /usr/local/etc
Product: Ports & Packages Reporter: wolfgang
Component: Individual Port(s)Assignee: freebsd-elastic (Nobody) <elastic>
Status: New ---    
Severity: Affects Some People CC: 000.fbsd, juraj
Priority: --- Flags: juraj: maintainer-feedback+
Version: Latest   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
patch for startup script to define path to temporary files none

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.