memcached not starting on boot

Asked by asaf

I installed memcached on ubuntu 9.10 x64 system. When I restart the system I need to manually sudo service memcached restart in order to start it. I believe it's a bug cause I also have ubuntu 8.* where it starts automatically on boot. Is there a solution for this?

Thanks

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Christopher Meiklejohn (cmeiklejohn) said :
#1

Hi there,

What run level is currently configured as the default on your system? You'd be able to see that at the top of /etc/inittab.

Also, can you try running 'update-rc.d memcached defaults'

Thanks!

Chris

Revision history for this message
asaf (asaf-wolf) said :
#2

Hi,

Thanks for your reply. I'm not sure how to check the run level cause
/etc/inittab doesn't exist on my system however when running update-rc.d
memcached defaults I get this:

System start/stop links for /etc/init.d/memcached already exist.
Died at /usr/sbin/update-rc.d line 57.

Any suggestions?

Cheers,
Asaf

On Tue, Nov 3, 2009 at 8:49 PM, cmeiklejohn <
<email address hidden>> wrote:

> Your question #87423 on Ubuntu changed:
> https://answers.edge.launchpad.net/ubuntu/+question/87423
>
> Status: Open => Needs information
>
> cmeiklejohn requested for more information:
> Hi there,
>
> What run level is currently configured as the default on your system?
> You'd be able to see that at the top of /etc/inittab.
>
> Also, can you try running 'update-rc.d memcached defaults'
>
> Thanks!
>
> Chris
>
> --
> To answer this request for more information, you can either reply to
> this email or enter your reply at the following page:
> https://answers.edge.launchpad.net/ubuntu/+question/87423
>
> You received this question notification because you are a direct
> subscriber of the question.
>

Revision history for this message
asaf (asaf-wolf) said :
#3

Apparently ENABLE_MEMCACHED=no by default
in /etc/default/memcached

I changed it to 'yes' and it works fine (it would be great if someone would
mention it somewhere)

Thanks for your time,
Asaf

On Tue, Nov 3, 2009 at 8:49 PM, cmeiklejohn <
<email address hidden>> wrote:

> Your question #87423 on Ubuntu changed:
> https://answers.edge.launchpad.net/ubuntu/+question/87423
>
> Status: Open => Needs information
>
> cmeiklejohn requested for more information:
> Hi there,
>
> What run level is currently configured as the default on your system?
> You'd be able to see that at the top of /etc/inittab.
>
> Also, can you try running 'update-rc.d memcached defaults'
>
> Thanks!
>
> Chris
>
> --
> To answer this request for more information, you can either reply to
> this email or enter your reply at the following page:
> https://answers.edge.launchpad.net/ubuntu/+question/87423
>
> You received this question notification because you are a direct
> subscriber of the question.
>

Revision history for this message
Christopher Meiklejohn (cmeiklejohn) said :
#4

Hi there,

Glad your problem is resolved!

The package install states that this should be enabled for memcache to run, and the traditional start mechanism /etc/init.d/memcached honors this setting when requesting a start or stop.

Thanks!

- Chris

Revision history for this message
family_man (dom-carruthersbros) said :
#5

After a day of Google'ing and many many attemps at solving this issue, the magic solution for me was...

update-rc.d memcached defaults

Thanks everybody for posting your solutions. Big help!

 - Dom

Can you help with this problem?

Provide an answer of your own, or ask asaf for more information if necessary.

To post a message you must log in.