# include helper methods
class ::Chef::Recipe
  include ::Opscode::ChefClient::Helpers
end

# libraries/helpers.rb method to DRY directory creation resources
client_bin = find_chef_client
Chef::Log.debug("Found chef-client in #{client_bin}")
node.default['chef_client']['bin'] = client_bin
create_directories

include_recipe 'runit' # ~FC007: runit is only required when using the runit_service recipe
runit_service 'chef-client'

# include helper methods
class ::Chef::Recipe
  include ::Opscode::ChefClient::Helpers
end

Chef::Log.warn("Running chef-client under the Runit init system is deprecated. Please consider running under your native init system instead.")

# libraries/helpers.rb method to DRY directory creation resources
client_bin = find_chef_client
Chef::Log.debug("Found chef-client in #{client_bin}")
node.default['chef_client']['bin'] = client_bin
create_directories

include_recipe 'runit' # ~FC007: runit is only required when using the runit_service recipe
runit_service 'chef-client'

Add deprecation warning when using the Runit init system
Add deprecation warning when using the Runit init system

Signed-off-by: Tim Smith <764ef62106582a09ed09dfa0b6bff7c05fd7d1e4@chef.io>
