Redhat – Launch memcached on server boot

bootmemcachedredhat

How can I do this? Im running RedHat x86_64 es5. I heard that a cron job is possible, and some other people talk about a script?

Note that my linux server knowledge is very limit, so please be thorough if you will kindly assist me.

Best Answer

chkconfig --level 2345 memcached on

It is possible, that the --level bit isn't required, but does give finer control

chkconfig memcached on

should work too..

The first one will turn memcached on (ie, start the daemon) whenever runlevels 2,3,4,5 are entered. i.e. startup.

This assumes that /etc/init.d/memcached is in the right place, but if you installed it from packages, it should be fine.

Related Topic