commands.sh

until

all

Simple shell loop that repeats until it receives zero as return value.

More info →

Options (1)

-q, --quietboolean

Wait for a systemd service to be active

Example: until systemctl is-active {{[-q|--quiet]}} {{nginx}}; do {{echo "Waiting..."}}; sleep 1; done; {{echo "Launched!"}}

Examples (2)

Execute a command until it succeeds

until command; do :; done

Wait for a systemd service to be active

until systemctl is-active [-q|--quiet] nginx; do echo "Waiting..."; sleep 1; done; echo "Launched!"
made by @shridhargupta | data from tldr-pages