Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
nghttpx: add systemd support #802
Add systemd's Type=notify support by sending information about master process PID around forks. Add some hardening option to service unit.
This improves systemd tracking of main process by explicitly stating which PID is master process. No need to use --pid-file.
I've introduced wrapper for sd_notifyf() function in order to reduce amount of #ifdef's.
There is one harmless message from systemd during forking (systemd: ng2.service: Supervising process 9267 which is not our child. We'll most likely not notice when it exits.). It doesn't really matter.
Thank you for your review! I updated the patchset according to your remarks.
I've also changed the service unit: