[CalendarServer-changes] [3358] CalendarServer/trunk/twistedcaldav/cluster.py

source_changes at macosforge.org source_changes at macosforge.org
Mon Nov 10 16:58:19 PST 2008


Revision: 3358
          http://trac.macosforge.org/projects/calendarserver/changeset/3358
Author:   wsanchez at apple.com
Date:     2008-11-10 16:58:19 -0800 (Mon, 10 Nov 2008)
Log Message:
-----------
Run memcached as the same user as the calendar server

Modified Paths:
--------------
    CalendarServer/trunk/twistedcaldav/cluster.py

Modified: CalendarServer/trunk/twistedcaldav/cluster.py
===================================================================
--- CalendarServer/trunk/twistedcaldav/cluster.py	2008-11-11 00:50:24 UTC (rev 3357)
+++ CalendarServer/trunk/twistedcaldav/cluster.py	2008-11-11 00:58:19 UTC (rev 3358)
@@ -393,10 +393,11 @@
         ]
 
         if config.Memcached["MaxMemory"] is not 0:
-            memcachedArgv.extend([
-                "-m", str(config.Memcached["MaxMemory"]),
-            ])
+            memcachedArgv.extend(["-m", str(config.Memcached["MaxMemory"])])
 
+        if config.UserName:
+            memcachedArgv.extend(["-u", config.UserName])
+
         memcachedArgv.extend(config.Memcached["Options"])
 
         monitor.addProcess("memcached", memcachedArgv, env=parentEnv)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20081110/3903c569/attachment.html>


More information about the calendarserver-changes mailing list