threefoldtech / zinit

A init replacement that feels like runit written in rust+tokio
Apache License 2.0
10 stars 1 forks source link

zinit stops trying to test too fast #11

Closed zaibon closed 5 years ago

zaibon commented 5 years ago

For a service that has a test command define, zinit stops trying after a very short time (3730ms). It can happens that some daemon takes quite some time before being ready. https://github.com/threefoldtech/zinit/blob/master/src/manager/mod.rs#L155

I think we need to change that so it retries forever but with a proper back off strategy. https://crates.io/crates/tokio-retry could be used for that.