Start memcached on boot

Support for webhosts that use CentOS
Post Reply
lionheart
Posts: 2
Joined: 2007/10/05 05:20:58

Start memcached on boot

Post by lionheart » 2008/09/21 03:43:07

Hello,

How do I run a command on server boot?

[quote]memcached -u nobody -d -m 256 -l 127.0.0.1 -p 11211[/quote]

User avatar
AlanBartlett
Forum Moderator
Posts: 9324
Joined: 2007/10/22 11:30:09
Location: ~/Earth/UK/England/Suffolk
Contact:

Re: Start memcached on boot

Post by AlanBartlett » 2008/09/21 11:48:30

You might be able to do as you require by putting that command line into the [b]/etc/rc.d/rc.local[/b] file.

You will need to take care of any output written to [i]stdout[/i] and [i]stderr[/i] by that command.

sakuiweb
Posts: 5
Joined: 2008/11/20 10:57:18
Contact:

Re: Start memcached on boot

Post by sakuiweb » 2008/11/20 15:00:42

just create a cron job, usual directory /var/spool/cron

the easyest way is to install a CP i have installed webmin then you just select "Scheduled Cron Jobs" and add the command and repeat times

or an init tab for bootup only, usual directory /etc/inittab

these sevices can be restarted with the init.d restart command

once again easyest way is to install a CP through webmin select "Initial System Bootup" and "create new init process"

Post Reply

Return to “CentOS 5 - Webhosting Support”