MEDIUM: New cli option -Ds for systemd compatibility

This patch adds a new option "-Ds" which is exactly like "-D", but instead of
forking n times to get n jobs running and then exiting, prefers to wait for all the
children it just created. With this done, haproxy becomes more systemd-compliant,
without changing anything for other systems.

Signed-off-by: Marc-Antoine Perennou <Marc-Antoine@Perennou.com>
This commit is contained in:
Marc-Antoine Perennou
2013-02-12 10:53:52 +01:00
committed by Willy Tarreau
parent fce2e96b9d
commit 992709bad0
5 changed files with 30 additions and 12 deletions

View File

@@ -56,6 +56,10 @@ starting up.
\fB\-D\fP
Start in daemon mode.
.TP
\fB\-Ds\fP
Start in systemd daemon mode, keeping a process in foreground.
.TP
\fB\-q\fP
Disable messages on output.