chef-cookbooks / runit

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

Enabling a previously disabled runit service will fail to converge #166

Closed cnmcavoy closed 8 years ago

cnmcavoy commented 8 years ago

When enabling a previously disabled runit service, the converge will fail (although the service will actually start). The steps to reproduce:

  1. Create a new runit service, and enable it.
  2. In another converge, disable the previous runit service
  3. In another converge, enable the previous runit service

Because of step 1, the service's supervise/ok named pipe exists at step 3, and so the runit cookbook falsely detects the service as already being ready to use. The supervise/ok named pipe should be deleted in step 2 to prevent this from occurring.