Skip to content

Instantly share code, notes, and snippets.

@cheeseplus
Created August 21, 2012 16:19
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 cheeseplus/3416974 to your computer and use it in GitHub Desktop.
Save cheeseplus/3416974 to your computer and use it in GitHub Desktop.
if node[:riak][:package][:type].eql?("binary")
service "riak" do
supports :start => true, :stop => true, :restart => true
action [ :enable ]
subscribes :restart, resources(:file => [ "#{node[:riak][:package][:config_dir]}/app.config",
"#{node[:riak][:package][:config_dir]}/vm.args" ])
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment