start redis on server startup

846 views
Skip to first unread message

shantanuo

unread,
Mar 13, 2012, 12:40:13 AM3/13/12
to Redis DB
Hi,
When I restart the server, redis does not seem to start automatically.
How do I make sure that redis is started on every reboot?
I am using centOS and have tried /usr/sbin/ntsysv But I do not see the
redis application in the list.
I am looking for a very simple way of starting redis on startup.

-- Shantanu

Josiah Carlson

unread,
Mar 13, 2012, 1:15:18 AM3/13/12
to redi...@googlegroups.com
If there is an /etc/rc.local you can add an '/etc/init.d/redis-server
start' line in there. If not, I don't know. I normally use Ubuntu or
Debian.

Regards,
- Josiah

> --
> You received this message because you are subscribed to the Google Groups "Redis DB" group.
> To post to this group, send email to redi...@googlegroups.com.
> To unsubscribe from this group, send email to redis-db+u...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/redis-db?hl=en.
>

Dvir Volk

unread,
Mar 13, 2012, 6:14:58 AM3/13/12
to redi...@googlegroups.com
IIRC in CentOS, making a service work on boot is just linking /etc/init.d/redis-server in /etc/rc3.d and /etc/rc5.d (or whatever runlevels you want).  But it's been a few years so I'm not sure they haven't changed their traditional approach like ubuntu have (partially).
--
Dvir Volk
System Architect, The Everything Project (formerly DoAT)

Maxim Yefremov

unread,
Oct 4, 2013, 2:39:54 PM10/4/13
to redi...@googlegroups.com, shanta...@gmail.com
@reboot ~/Downloads/redis-2.6.16/src/redis-server
in cron file. It work in ubuntu 12.
Reply all
Reply to author
Forward
0 new messages