wait_for_tcp.md
February 27, 2020 ยท View on GitHub
wait_for_tcp MATCH up|down
Waits for a listening tcp service to be up or down.
Internally uses "netstat -ltn".
warning: may not work on all platforms!
use net timeout
@ Stop nginx service
- service nginx stop
- timeout 20 wait_for_tcp 127.0.0.1:80 down