redis-server auto restart

Wawan Brutalx picture Wawan Brutalx · Nov 16, 2012 · Viewed 13.5k times · Source

i have a question here..

i already install redis-server on my CentOS vps for my wordpress frontend cache.. but i have a little problem here..

sometimes my redis-server was closed/disconnected suddenly, and i must have to restart it manually using command

/etc/init.d/redis-server start

my question is..

how to auto start the redis-server if my redis-server down or crashed suddenly..

i install redis using this tutorial http://www.saltwebsites.com/2012/install-redis-245-service-centos-6

great thanks before

Answer

yojimbo87 picture yojimbo87 · Nov 16, 2012

how to auto start the redis-server if my redis-server down or crashed suddenly

Try to look at tools like upstart or monit which can be used to respawn redis if it dies unexpectedly.