chef-cookbooks / runit

Development repository for the Chef Runit Cookbook
https://supermarket.chef.io/cookbooks/runit
Apache License 2.0
106 stars 197 forks source link

wait until runsv is reading from supervise/ok #247

Open stevendanna opened 5 years ago

stevendanna commented 5 years ago

Description

If the supervise/ok pipe already exists on disk before runsv has started, then existence check here is not enough.

Since runsv opens the pipe for reading as part of its startup, we can open it for writing which will block until runsv has called open.

A version of this fix has been running in one of our internal projects for some time.

Check List