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
The patch would also work for textproc/elasticsearch7
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.