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

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

Sarah Jenkins

Sarah Jenkins

Senior Technology Editor & AI Specialist

Sarah Jenkins is a veteran tech journalist with over 12 years of experience covering artificial intelligence, mobile innovations, and digital ethics. Her insights have appeared in leading technology publications worldwide.

Share this article
Twitter Facebook Pinterest