Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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

share|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

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.