HomeFreeBSD

MFH: r462650

Description

MFH: r462650

textproc/elasticsearch5: Use native facilites for manging the process

start/stop/status will behave correctly with procname set.

This now prevents Elastic from starting when a process is already
running, stops cleanly, and also handles multiple profiles correctly:
if only some of the profile processes are running, a "service
elasticsearch start" will only start the profiles that are not detected
as running already.

All of this comes with the caveat that Elastic is slow to start up and write
its pidfile, so if you are too quick it will allow duplicate processes
to start. Here be JVM dragons.

Approved by: portmgr (with hat)

Details

Provenance
feldAuthored on
Parents
rP462650: textproc/elasticsearch5: Use native facilites for manging the process
Branches
Unknown
Tags
Unknown