I've installed mongodb v3.4. This starts up on boot.
So I'm wondering, how to I find out what is starting this up (and how to disable it from starting on boot)?
The following did not work:
I've installed mongodb v3.4. This starts up on boot.
So I'm wondering, how to I find out what is starting this up (and how to disable it from starting on boot)?
The following did not work:
As far as I now, services are automatically enabled in Ubuntu, so when you install something like
Apache
it will be started at boot.Find some information
To find out all services that have been run at startup:
this will show all services that has been loaded at boot and are active now. If you want to get a list of all services no matter they are active or not:
Another thing you can do is to run:
then hit
/
and search formongodb
see whatservice
/target
depends on it and runs it.Also you can run :
Which produces something like:
then you will know that it's being started as a part of multi-user target, alternative to this is:
Disable it
To find out that if it's active (Will be run at startup/boot-time):
It's either
active
orinactive
; In your case it should beactive
.To stop it from being started at boot time we should disable it:
And to make sure nothing else (No other service) can start it, we mask it:
so it will be linked to
/dev/null
and can't be started automatically or manually anymore.I'm not aware of
mongodb
service name, try hitting the tab it will be completed. I guess it'smongodb
;)To know if a service is enabled at boot time, the right command is :
You can try by yourself by changing the state with
(this isn't intended to be the answer)
Also have a look at Settings -> Session and Startup -> Application Autostart to see if your application is mentioned there.