Skip to content

Instantly share code, notes, and snippets.

@jtimberman
Forked from jsierles/gist:88312
Created March 31, 2009 18:20
Show Gist options
  • Save jtimberman/88318 to your computer and use it in GitHub Desktop.
Save jtimberman/88318 to your computer and use it in GitHub Desktop.
define :memcached_instance, :enable => true do
runit_service "memcached-#{params[:name]}" do
template_name "memcached"
options({:max_memory => node[:memcached][:max_memory],
:port => node[:memcached][:port], :user => node[:memcached][:user],
:max_connections => node[:memcached][:port]}.merge(params))
end
service params[:name] do
action params[:enable] ? [:enable, :start] : [:disable, :stop]
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment