Skip to content

Latest commit

 

History

History
16 lines (10 loc) · 282 Bytes

wait_for_tcp.md

File metadata and controls

16 lines (10 loc) · 282 Bytes
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