Permalink
Browse files

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

  • Loading branch information...
jtimberman committed Dec 11, 2009
1 parent 29b2a78 commit c3e6e140017f50c7c1284baeab1a78a8123cfb1c
Showing with 14 additions and 1 deletion.
  1. +1 −1 metadata.rb
  2. +11 −0 recipes/default.rb
  3. +2 −0 templates/default/memcached.default.erb
View
@@ -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
@@ -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
@@ -0,0 +1,2 @@
+# Set this to yes to enable memcached.
+ENABLE_MEMCACHED=yes

0 comments on commit c3e6e14

Please sign in to comment.