Return to lonmemcached CVS log | Up to [LON-CAPA] / loncom |
version 1.1, 2005/02/14 00:29:48 | version 1.5, 2005/07/08 02:22:58 |
---|---|
Line 15 open (PIDSAVE,">$pidfile"); | Line 15 open (PIDSAVE,">$pidfile"); |
print PIDSAVE "$$\n"; | print PIDSAVE "$$\n"; |
close(PIDSAVE); | close(PIDSAVE); |
exec("/usr/local/bin/memcached -m 256 -v > $logfile"); | if (-e '/usr/sbin/memcached') { |
exec('/usr/sbin/memcached','-m','256','-v'); | |
} elsif (-e '/usr/bin/memcached') { | |
exec('/usr/bin/memcached','-m','256','-v'); | |
} else { | |
die("Unable to find memcached"); | |
} |