Chef::Provider::Service::Daemontools
Chef's provider to manage service under daemontools.
You can transparently manage processes under daemontools using service
resource.
Installation
Add this line to your application's Gemfile:
gem 'chef-provider-service-daemontools'
And then execute:
$ bundle
Or install it yourself as:
$ gem install chef-provider-service-daemontools
Usage
require 'chef/provider/service/daemontools'
service 'tinydns-internal' do
provider Chef::Provider::Service::Daemontools
service_dir '/service'
directory '/etc/djbdns/tinydns-internal'
supports :restart => true, :reload => true
action [:enable, :start]
end
- provider (required)
Chef::Provider::Service::Daemontools
- service_dir (optional)
- directory that svscan monitors. default is
/service
- directory that svscan monitors. default is
- directory (required)
- directory contains
run
file
- directory contains
Contributing
- Fork it ( https://github.com/hirose31/chef-provider-service-daemontools/fork )
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request