jouet wait daemon
- Usage:
jouet wait daemon [FLAGS] <ID>
Wait for a pitchfork daemon to be ready, or to stop
For a project's long-running services, the daemons pitchfork runs (one-off work is wait job's). Reads pitchfork status ID --json in this directory, so a short ID resolves in this project's namespace. Ready is running and, when there is a port to try (--port, or the port pitchfork says the daemon binds) or a URL (--http), answering there: pitchfork's JSON does not say whether its own ready check passed. --until stopped waits until the daemon no longer runs. A daemon that errors or fails ends the wait with exit 1; then, and on a timeout, the end of its log is shown and the whole log is saved. Exits 3 when pitchfork has no such daemon and 4 when pitchfork is not installed.
Arguments
<ID>— The daemon's ID:api, ornamespace/api
Flags
--until <CONDITION>—ready(the default) orstopped--port <N>— Ready once localhost's port N accepts connections--http <URL>— Ready once URL answers with a 2xx status--log-lines <N>— Lines of its log to show on failure or timeout (default 60; 0 shows all of it)--no-logs— Do not read its log-h --help— Print help