On Tue, Nov 21, 2017 at 11:45:29AM +0100, Lukas Tribus wrote:
> Since we switched to notify mode in the systemd unit file in commit
> d6942c8, haproxy won't start if the daemon keyword is present in the
> configuration.
>
> Update the unit file with -db to disable background mode in all
> circumstances and add a note in the documentation.
Don't you want to try with this instead (sorry for the bold copy-paste) ?
It's also more in line with your doc update.
diff --git a/src/haproxy.c b/src/haproxy.c
index b39a95f..4596dbd 100644
--- a/src/haproxy.c
+++ b/src/haproxy.c
@@ -1363,7 +1363,7 @@ static void init(int argc, char **argv)
else if (*flag == 'D')
arg_mode |= MODE_DAEMON;
else if (*flag == 'W' && flag[1] == 's') {
- arg_mode |= MODE_MWORKER;
+ arg_mode |= MODE_MWORKER | MODE_FOREGROUND;
#if defined(USE_SYSTEMD)
global.tune.options |= GTUNE_USE_SYSTEMD;
#else
Thanks,
Willy