3

Ubuntu 15.10

I am TOTALLY confused by all the posts about the new service loaders, and rather concerned that Mongo don't seem to think that it is their issue to solve. Here is one of several posts that suggest it is nearly impossible, except with manual interventions. (A solution from 2011 is not a solution given the current mix of technology used by Ubuntu and Mongo.)

And yet, what I know is that mongod no longer starts at boot time, but that if I open a console and run sudo service mongod start, then it works.

What is the simplest way to automate this during the initial bootup?

Hotbelgo
  • 673

2 Answers2

3

The simplest way is to use update-rc.d. Enter following command to add mongod to system services means starting at boot time:

sudo update-rc.d mongod defaults
Tung Tran
  • 4,023
0

The correct command is:

sudo update-rc.d mongodb defaults
Eliah Kagan
  • 119,640