KO
|
EN
gitlite — search
Search
#python
#java
#python3
#arduino
#golang
#machine-learning
#rust
#html
#flask
#javascript
#seismology
#nodejs
wait-for-them
★ 20
Open GitHub ↗
Wait until TCP services are running.
Download README (.md)
Explore Similar Repositories
Laravel-CRUD-Ajax-Datatables
:
No description available.
PaintingOnlineClient
:
使用Flutter搭建的你画我猜游戏的客户端
ArtNet
:
ArtNet Swift library
fairensics
:
:mag: A python library to discover and mitigate biases in machine learning models and datasets :mag:
style_trans
:
图片风格迁移
// repository documentation
Was this content helpful?
★ 0
(0 ratings)
Select Rating:
★
★
★
★
★
Submit Feedback
Recent Feedback
×
Download README
Do you want to download the
README.md
file for
wait-for-them
?
Download (.md)
   [](https://docs.rs/wait-for-them/)  # Wait-For-Them Waits until all provided host and port pairs are opened or return status 200 in case of http(s) url. It is written using async rust.  ## Installation There are currently two way how to install the app. You can install the binary only with a minimal subset of features. ```bash cargo install wait-for-them --no-default-features ``` Or you can install it with all its features (including the nice progressbars and http(s) support). ```bash cargo install wait-for-them ``` ## Running ### Wait forever ```bash wait-for-them host1:port1 host2:port2 http://host3:8080/ ``` ### Wait with timeout (in milliseconds) ``` wait-for-them -t 5000 host1:port1 host2:port2 http://host3:8080/ ``` Note that it returns a number of unopened host:port combinations. So if it worked ok it returns standard `0`. ### Execute a command after all hosts have opened ports ``` wait-for-them host1:port1 host2:port2 http://host3:8080/ -- cmd arg1 arg2 ``` Note that if the ports are opened it returns the status code of cmd. ## Motivation The main motivation of this program was to use it within `docker-compose` config file (see `docker-compose.yml`). To support waiting for multiple hostname:port records in parallel.