Page 1 of 1

Start memcached on boot

Posted: 2008/09/21 03:43:07
by lionheart
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]

Re: Start memcached on boot

Posted: 2008/09/21 11:48:30
by AlanBartlett
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.

Re: Start memcached on boot

Posted: 2008/11/20 15:00:42
by sakuiweb
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"