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

Don't double start when creating new services #215

Closed danp60 closed 6 years ago

danp60 commented 7 years ago

Signed-off-by: Daniel Low danglow@gmail.com

Description

We noticed that when creating a new service, the :create action would start the service twice. Once during the action_enable step and once again for restart_service. This PR fixes the issue by only restarting the service if the action was previously enabled. If the service was not previously enabled (either disabled or not created) then it's not necessary to restart the service after its been started.

Check List

danp60 commented 7 years ago

Any updates on this?

tas50 commented 6 years ago

Sorry for the delay. Thanks for the fix