mirror of
https://github.com/haproxy/haproxy.git
synced 2026-04-28 01:26:59 -04:00
MEDIUM: cfgparse: 'daemon' not compatible with -Ws
Emit a warning when the 'daemon' keyword is used in master-worker mode for systemd (-Ws). This never worked and was always ignored by setting MODE_FOREGROUND during cmdline parsing.
This commit is contained in:
parent
631233e9ec
commit
4f978325ac
1 changed files with 5 additions and 1 deletions
|
|
@ -995,7 +995,11 @@ static int cfg_parse_global_mode(char **args, int section_type,
|
|||
return -1;
|
||||
|
||||
if (strcmp(args[0], "daemon") == 0) {
|
||||
global.mode |= MODE_DAEMON;
|
||||
if (global.tune.options & GTUNE_USE_SYSTEMD) {
|
||||
ha_warning("'%s' is not compatible with -Ws (master-worker mode for systemd), ignoring.\n", args[0]);
|
||||
} else {
|
||||
global.mode |= MODE_DAEMON;
|
||||
}
|
||||
|
||||
} else if (strcmp(args[0], "quiet") == 0) {
|
||||
global.mode |= MODE_QUIET;
|
||||
|
|
|
|||
Loading…
Reference in a new issue