Skip to content

Instantly share code, notes, and snippets.

@chef
Created April 15, 2009 21:27
Show Gist options
  • Save chef/96031 to your computer and use it in GitHub Desktop.
Save chef/96031 to your computer and use it in GitHub Desktop.
# Divine Panda
service "foo" do
action :nothing
end
template "/etc/foo/config.conf" do
source "config.conf.erb"
action :create
notifies :restart, resources(:service => "foo")
end
# If you wanted to make sure it was always running
service "foo" do
action :start
end
# You will be a happy panda
template "/etc/foo/config.conf" do
source "config.conf.erb"
action :create
end
service "foo" do
action :start
end
# You will be a sad panda if the service is broken
service "foo" do
action :start
end
template "/etc/foo/config.conf" do
source "config.conf.erb"
action :create
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment