Why can't you just redirect the output from the memcached server into
a file?
./memcached -vvv > /var/log/memcached.log 2>&1
?
Cheers
Trond
Brett
Centos inherits the RedHat style init scripts which typically use the
daemon() function in /etc/rc.d/init.d/functions to start programs - and
it redirects stdout and stderr to /dev/null among other things. You'll
probably have to make the /etc/init.d/memcached script do the same
things directly instead of using daemon() so you can control the
redirection yourself. It would be a little handier for this style of
control if memcached had a command line option like '-o logfile' so it
could be controlled in the options the script sources from
/etc/sysconfig/memcached and expands on the command line.
--
Les Mikesell
lesmi...@gmail.com