diff --git a/doc/configuration.txt b/doc/configuration.txt index bb255be7e..cc397e188 100644 --- a/doc/configuration.txt +++ b/doc/configuration.txt @@ -680,7 +680,8 @@ crt-base daemon Makes the process fork into background. This is the recommended mode of operation. It is equivalent to the command line "-D" argument. It can be - disabled by the command line "-db" argument. + disabled by the command line "-db" argument. This option is ignored in + systemd mode. deviceatlas-json-file Sets the path of the DeviceAtlas JSON data file to be loaded by the API. diff --git a/src/haproxy.c b/src/haproxy.c index b39a95fe3..4596dbded 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