Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Create PID file earlier in the startup process #1978
The PID file of the Graylog server process is created rather late in the startup process (e. g. after the Guice injector has been created). If an error happened before but didn't shutdown the Graylog server process, the PID file might not have been created although the process keeps running which in turn might cause problems with external process monitors.
This PR moves the creation of the PID file to the earliest sensible moment in the startup process of Graylog.