[LON-CAPA-cvs] cvs: loncom / lonmemcached

albertel lon-capa-cvs@mail.lon-capa.org
Fri, 08 Jul 2005 01:23:30 -0000


albertel		Thu Jul  7 21:23:30 2005 EDT

  Modified files:              
    /loncom	lonmemcached 
  Log:
  - SuSE puts memcached into /usr/bin
  
  
Index: loncom/lonmemcached
diff -u loncom/lonmemcached:1.3 loncom/lonmemcached:1.4
--- loncom/lonmemcached:1.3	Thu Jul  7 21:20:46 2005
+++ loncom/lonmemcached	Thu Jul  7 21:23:29 2005
@@ -15,4 +15,10 @@
 print PIDSAVE "$$\n";
 close(PIDSAVE);
 
-exec('/usr/sbin/memcached','-m','256','-v');
+if (-e '/usr/sbin/memcached') {
+    exec('/usr/sbin/memcached','-m','256','-v');
+} elsif (-e '/usr/bin/memcached') {
+    exec('/usr/sbin/memcached','-m','256','-v');
+} else {
+    die("Unable to find memcached");
+}