[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Default & supported service manager in Wheezy



On Fri, 9 May 2014 10:22:36 +0200
Filip <filip@fbvnet.be> wrote:
> If insserv -r removes the link, is there a chance will it get silently
> recreated when dpkg updates or reinstalls the package ? That would be
> one reason not to use it.

So, I did a test. 

insserv -r does delete the link in all runlevels. And a subsequent
apt-get install --reinstall recreates the link, and in doing so it gets
silently reenabled.

With update-rc.d, the link is renamed from S... to K.., and apt-get
install --reinstall recognizes it as a configuration file and leaves it
alone, which is as it should be.

My conclusion: if you don't want the services that you thought you
had disabled to be re-enabled behind you back when you run an upgrade,
don't use insserv -r as the wiki page tell you to, use update-rc.d, at
least for sysvinit.

But then, what about a system that boots with systemd. systemctl or
update-rc.d ?


Reply to: