hardPass
hardPass

Reputation: 20801

How to make mongodb service not start automatically in ubuntu 15.10 desktop?

I installed mongodb by Ubuntu Software Center in ubuntu 15.10 desktop. Service Mongodb starts automatically every time when I boot my laptop. Because it is not in the server edition os, so I want to start or stop the service manually, like sudo sevice mongodb start/stop.

I've tied to comment # start on runlevel [2345] in /etc/init/mongodb.conf, and remove all *mongo* from all /etc/rc*.d/. The service still starts automatically.

So, please help me.

Upvotes: 1

Views: 1683

Answers (1)

Ricardo Cruz
Ricardo Cruz

Reputation: 3583

This should do it:

sudo update-rc.d mongodb disable

This should work for Ubuntu 16.04. Not sure if 15.10 was still using upstart or not.

For more information, the same question has been asked over AskUbuntu, check the other answers there for more information.

Upvotes: 0

Related Questions