[Erp5-report] r36320 cedric.dsm - /erp5/trunk/utils/erp5.recipe.memcachedserver/src/erp5/re...

nobody at svn.erp5.org nobody at svn.erp5.org
Mon Jun 14 19:13:09 CEST 2010


Author: cedric.dsm
Date: Mon Jun 14 19:13:07 2010
New Revision: 36320

URL: http://svn.erp5.org?rev=36320&view=rev
Log:
memcachedserver egg : 
  Now creates a "memcached" directory in var to store the pidfile.
  Fixes a bug in which memcached run as daemon even if the contrary is specified in the recipe.

Modified:
    erp5/trunk/utils/erp5.recipe.memcachedserver/src/erp5/recipe/memcachedserver/__init__.py

Modified: erp5/trunk/utils/erp5.recipe.memcachedserver/src/erp5/recipe/memcachedserver/__init__.py
URL: http://svn.erp5.org/erp5/trunk/utils/erp5.recipe.memcachedserver/src/erp5/recipe/memcachedserver/__init__.py?rev=36320&r1=36319&r2=36320&view=diff
==============================================================================
--- erp5/trunk/utils/erp5.recipe.memcachedserver/src/erp5/recipe/memcachedserver/__init__.py [utf8] (original)
+++ erp5/trunk/utils/erp5.recipe.memcachedserver/src/erp5/recipe/memcachedserver/__init__.py [utf8] Mon Jun 14 19:13:07 2010
@@ -89,7 +89,7 @@ class Recipe(object):
         simultaneous_connections)
     if user: 
       config.set('memcached', 'user', user)
-    if run_as_daemon:
+    if "true" in run_as_daemon:
       config.set('memcached', 'run_as_daemon', run_as_daemon)
     if pid_file: 
       config.set('memcached', 'pid_file', pid_file)
@@ -111,6 +111,11 @@ class Recipe(object):
 
 
   def install(self):
+    home = self.options.get('memcached_home')
+    # Checks memcached home directory existence. If not, creates it
+    if not os.path.isdir(home):
+      os.makedirs(home)
+    
     self.build_configuration_file()
     self.install_script('memcached')
     return []




More information about the Erp5-report mailing list