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:
William Lallemand 2023-11-09 15:02:13 +01:00
parent 705a72fd19
commit 3ac3a06963

View File

@ -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 */