Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

COOK-223, support karmic /etc/default/memcached

  • Loading branch information...
commit c3e6e140017f50c7c1284baeab1a78a8123cfb1c 1 parent 29b2a78
@jtimberman jtimberman authored
View
2  metadata.rb
@@ -3,7 +3,7 @@
license "Apache 2.0"
description "Installs memcached and provides a define to set up an instance of memcache via runit"
long_description IO.read(File.join(File.dirname(__FILE__), 'README.rdoc'))
-version "0.8"
+version "0.9"
depends "runit"
%w{ ubuntu debian }.each do |os|
supports os
View
11 recipes/default.rb
@@ -42,3 +42,14 @@
)
notifies :restart, resources(:service => "memcached"), :immediately
end
+
+case node[:lsb][:codename]
+when "karmic"
+ template "/etc/default/memcached" do
+ source "memcached.default.erb"
+ owner "root"
+ group "root"
+ mode "0644"
+ notifies :restart, resources(:service => "memcacched"), :immediately
+ end
+end
View
2  templates/default/memcached.default.erb
@@ -0,0 +1,2 @@
+# Set this to yes to enable memcached.
+ENABLE_MEMCACHED=yes
Please sign in to comment.
Something went wrong with that request. Please try again.