Multiple Memcached server /etc/init.d startup script that works ?
- by p4guru
I install memcached server via source and can get standard start up script installed for 1 memcached server instance, but trying several scripts via google, can't find one that works to manager auto start up on boot for multiple memcached server instances. I've tried both these scripts and both don't work, service memcached start just returns to command prompt with no memcached server instances started
lullabot.com/articles/installing-memcached-redhat-or-centos
addmoremem.blogspot.com/2010/09/running-multiple-instances-of-memcached.html
However this bash script works but doesn't start up memcached instances at start up though ?
#!/bin/sh
case "$1" in
start)
/usr/local/bin/memcached -d -m 16 -p 11211 -u nobody
/usr/local/bin/memcached -d -m 16 -p 11212 -u nobody
;;
stop) killall memcached
;;
esac
OS: Centos 5.5 64bit
Memcached = v1.4.5
Memcache = v2.2.5
Anyone can point me to a working /etc/init.d/ startup script to manage multiple memcached servers ? Thanks