forked from haproxy/haproxy
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
BUG/MINOR: startup: fix pidfile creation
Pidfile should be created at the latest initialization stage, when we are sure, that process is able to start successfully, otherwise PID value, written in this file is no longer valid. So, for the standalone mode, let's move the block, which opens the pidfile and let's put it just before applying "chroot". In master-worker mode, master doesn't perform chroot. So it creates the pidfile, only when the "READY" message from the newly forked worker is received. This should be backported only in 3.1
- Loading branch information
Showing
2 changed files
with
17 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters