Return to lonmemcached CVS log | Up to [LON-CAPA] / loncom |
version 1.2, 2005/02/17 20:45:04 | version 1.6, 2006/10/17 05:56:34 |
---|---|
Line 15 open (PIDSAVE,">$pidfile"); | Line 15 open (PIDSAVE,">$pidfile"); |
print PIDSAVE "$$\n"; | print PIDSAVE "$$\n"; |
close(PIDSAVE); | close(PIDSAVE); |
exec("/usr/sbin/memcached -m 256 -v > $logfile"); | if (-e '/usr/sbin/memcached') { |
exec('/usr/sbin/memcached','-m','400','-v'); | |
} elsif (-e '/usr/bin/memcached') { | |
exec('/usr/bin/memcached','-m','400','-v'); | |
} else { | |
die("Unable to find memcached"); | |
} |