Suggested way to manage service's startup on boot in 10.04 LTS
Tom H
tomh0665 at gmail.com
Mon Apr 25 17:51:14 UTC 2011
On Mon, Apr 25, 2011 at 11:17 AM, Ryan Chan <ryanchan404 at gmail.com> wrote:
>
> Before 10.04, I can use rcconf to manage all services default's start
> or not, that is so cool.
>
> Now, in Ubuntu 10.04, rcconf no longer work (at least for some
> services, e.g. mongodb)
>
> Now, to disable it, I rename the /etc/init/mongodb to
> /etc/init/mongodb.disabled, this is somehow working...
>
> but this is stupid as now I cannot start it manually...
>
> service mongodb start (no longer work)
>
> Are there any document for these basic stuffs?
No practical documents that I know of. The upstart developer has a
blog but it's aimed at fellow developers and is more of a feature
exposition than real documentation.
Instead of "mv /etc/init/mongodb /etc/init/mongodb.disabled", you
could comment out the start stanza in "/etc/init/mongodb".
I can't try this at the moment because I've uninstalled Natty, but you
can - in Natty - create a "/etc/init/mongodb.override" with only
"manual" in it so that mongodb only starts when you request it
directly.
More information about the ubuntu-users
mailing list