Skip to content

Instantly share code, notes, and snippets.

@bakins
Created June 10, 2011 19:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bakins/1019645 to your computer and use it in GitHub Desktop.
Save bakins/1019645 to your computer and use it in GitHub Desktop.
service "nginx" do
supports :status => true, :restart => true, :reload => true
action :enable
end
ruby_block "start nginx service" do
block do
true
end
action :create
notifies :start, "service[nginx]", :delayed
not_if "/usr/sbin/service nginx status"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment