Adoptable Cookbooks List

Looking for a cookbook to adopt? You can now see a list of cookbooks available for adoption!
List of Adoptable Cookbooks

Supermarket Belongs to the Community

Supermarket belongs to the community. While Chef has the responsibility to keep it running and be stewards of its functionality, what it does and how it works is driven by the community. The chef/supermarket repository will continue to be where development of the Supermarket application takes place. Come be part of shaping the direction of Supermarket by opening issues and pull requests or by joining us on the Chef Mailing List.

Select Badges

Select Supported Platforms


chef-client-runit (2) Versions 0.1.0

Sets up chef-client as a runit-supervised service

cookbook 'chef-client-runit', '= 0.1.0'
cookbook 'chef-client-runit', '= 0.1.0', :supermarket
knife supermarket install chef-client-runit
knife supermarket download chef-client-runit
Quality 100%


This cookbook handles setting up chef-client to run as a service supervised by runit.


I wanted something more simple for my purposes of running chef-client as a service than the excellent chef-client cookbook. I don't need the various extra features of that cookbook, I just need to get chef-client under runit.

It is not in scope to:

  • Configure chef client /etc/chef/client.rb
  • Perform log rotation (runit does that automatically)
  • Support cron
  • Support every platform
  • Support every use case

Reasonable effort was made to ensure flexibility for the startup options.


This cookbook requires Chef 12 or later.


  • Ubuntu 12.04, 14.04
  • Fedora 21
  • CentOS 6.6, 7.0

It should just work on any platform that the runit cookbook supports.


  • runit


This cookbook uses the chef_client attribute namespace so that existing attributes can be reused without fuss.

Attribute Description Type Default
interval Interval for when the chef-client process should wake up, passed to -i. String 1800
splay Random number of seconds to add to the interval, passed to -s. String 300
locale Optionally set the locale. String nil
daemon_options Array of command-line options to pass to chef-client. Array []


Put recipe[chef-client-runit] on your node's role or run list.

License and Author

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Dependent cookbooks

runit >= 0.0.0

Contingent cookbooks

There are no cookbooks that are contingent upon this one.

Foodcritic Metric

0.1.0 passed this metric