uninstall init.d update-rc.d remove

I installed an init.d script with this command:

sudo update-rc.d mongodb defaults 98 02

I want to uninstall it, so I'm planning on running:

sudo update-rc.d -f mongodb remove

I'm concerned about the start and stop conditions in the installation command.
Will running the remove cause the start and stop conditions to be removed also?

Are there any implications that I should be aware of?

1 Answer

Will running the remove cause the start and stop conditions to be removed also?

It will remove any instance of your script from the system, meaning, any link in /etc/rc*runlevel*.d to the mongodb script in your /etc/init.d.

Are there any implications that I should be aware of?

If some other script depends of mongodb to start/stop it will fail.

Check the manpage for a complete description.

2

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like