Skip to content

Instantly share code, notes, and snippets.

@jsierles
Created March 31, 2009 18:10
Show Gist options
  • Save jsierles/88312 to your computer and use it in GitHub Desktop.
Save jsierles/88312 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