I've installed memcached on my centos 5.2 box and it runs ok if I start it manually but I'm struggling to set it up as a service. After a long pause I just got this error:

service memcached status /sbin/service: line 66: 3936 Segmentation fault env -i LANG="$LANG" PATH="$PATH" TERM="$TERM" "${SERVICEDIR}/${SERVICE}" ${OPTIONS}

My /etc/init.d/memcached looks like: http://pastebin.com/LqDMPwh5

link|improve this question
Did you make your script from the "skeleton" init script in /etc/init.d ? – Tim Dec 22 '11 at 16:59
NVM wrong distro. – Tim Dec 22 '11 at 17:00
@Tim I build memcached from source and found that in the scripts folder – Mark Robinson Dec 22 '11 at 17:02
That init script doesn't define "status", but it does source /etc/rc.d/init.d/functions at the beginning, which should contain the routine for "status". Does the file /etc/rc.d/init.d/functions exist on your system? – Tim Dec 22 '11 at 17:42
The /etc/rc.d/init.d/functions does exist on my system, but I only have a RHEL5 system available to check under, but supposedly Cent is a clone of RHEL, so it should be same/similar. – Tim Dec 22 '11 at 17:44
show 2 more comments
feedback

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
or
required, but never shown

Browse other questions tagged or ask your own question.