mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2026-03-03 06:01:09 +01:00
MEDIUM: mworker: -W is mandatory when using -S
Defining a master CLI without the master-worker mode emits a warning since version 1.8. This patch enforce the behavior by forbiding the usage of the -S option without the master-worker mode.
This commit is contained in:
parent
705a72fd19
commit
3ac3a06963
@ -2250,7 +2250,8 @@ static void init(int argc, char **argv)
|
||||
}
|
||||
|
||||
if (!LIST_ISEMPTY(&mworker_cli_conf) && !(arg_mode & MODE_MWORKER)) {
|
||||
ha_warning("a master CLI socket was defined, but master-worker mode (-W) is not enabled.\n");
|
||||
ha_alert("a master CLI socket was defined, but master-worker mode (-W) is not enabled.\n");
|
||||
exit(EXIT_FAILURE);
|
||||
}
|
||||
|
||||
/* destroy unreferenced defaults proxies */
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user