Skip to content

Instantly share code, notes, and snippets.

@bixu
Created October 21, 2010 21:11
Show Gist options
  • Save bixu/639369 to your computer and use it in GitHub Desktop.
Save bixu/639369 to your computer and use it in GitHub Desktop.
## broken:
bash "enable chef-client service" do
user "root"
code <<-EOH
chkconfig --levels 2345 chef-client on
/etc/init.d/chef-client start
EOH
end
## correct:
# runs /etc/init.d/chef-client
service "chef-client" do
supports :status => true, :restart => true, :reload => true
action [ :enable, :start ]
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment