zato wait

Overview

Waits for a server until it becomes operational.

The command can be useful if, in your scripts, you start a server but you are not sure if it is already fully operational before you can proceed. For instance, you want to be sure that enmasse can run.

After executing this command, it will block until the server is ready or until a timeout is reached. While it is waiting, it will display diagnostic information concerning what it is currently doing and what the responses from the server are.

$ zato wait --path /path/to/server
Waiting for `http://127.0.0.1:17010/zato/ping` ...
Waiting for `http://127.0.0.1:17010/zato/ping` ...
Waiting for `http://127.0.0.1:17010/zato/ping` ...
$