Created
October 21, 2010 21:11
-
-
Save bixu/639369 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## 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