specified condition to be satisfied, to unrecoverably fail, or to remain
unsatisfied for the whole <delay> duration. The supported conditions are:
- - srv-unused <proxy>/<server> : this will wait for the specified server to be
- removable, i.e. be in maintenance and no longer have any connection on it.
- Some conditions will never be accepted (e.g. not in maintenance) and will
- cause the report of a specific error message indicating what condition is
- not met. The server might even have been removed in parallel and no longer
- exit. If everything is OK before the delay, a success is returned and the
- operation is terminated.
+ - srv-removable <proxy>/<server> : this will wait for the specified server to
+ be removable, i.e. be in maintenance and no longer have any connection on
+ it. Some conditions will never be accepted (e.g. not in maintenance) and
+ will cause the report of a specific error message indicating what condition
+ is not met. The server might even have been removed in parallel and no
+ longer exit. If everything is OK before the delay, a success is returned
+ and the operation is terminated.
The default unit for the delay is milliseconds, though other units are
accepted if suffixed with the usual timer units (us, ms, s, m, h, d). When
$ socat -t5 /path/to/socket - <<< "
disable server px/srv1
shutdown sessions server px/srv1
- wait 2s srv-unused px/srv1
+ wait 2s srv-removable px/srv1
del server px/srv1"
return cli_err(appctx, "Invalid duration.\n");
}
- if (strcmp(args[2], "srv-unused") == 0) {
+ if (strcmp(args[2], "srv-removable") == 0) {
struct ist be_name, sv_name;
if (!*args[3])
" - <condition> indicates what to wait for, no longer than the specified\n"
" duration. Supported conditions are:\n"
" - <none> : by default, just sleep for the specified duration.\n"
- " - srv-unused <px>/<sv> : wait for this server to become unused.\n"
+ " - srv-removable <px>/<sv> : wait for this server to become removable.\n"
"";
if (strcmp(args[2], "-h") == 0)