[Pkg-sysvinit-devel] Bug#560222: Bug#560222: insserv: How to disable a service permanently?

Kel Modderman kel at otaku42.de
Sat Apr 14 21:21:41 UTC 2012


Hi Andreas,

> On Saturday, April 14, 2012 01:14:03 you wrote:
> > insserv is the wrong interface to disable services. insserv -r *removes*
> > links to services and that's exactly what it does, it does not disable the
> > links from ever returning and never will be extended to do that.
> > 
> > Update-rc.d has an interface for disabling initscript execution, though
> > arguably this interface should be in the service(8) command. This was
> > mentioned earlier in the bug report.
> > 
> > http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=560222#10
> > 
> > Thanks, Kel
> 
> i see,
> i was under the wrong impression that insserv and update-rc.d did the same 
> thing, and that using update-rc.d was deprecated. so 'insserv -r' is like 
> 'update-rc.d remove', but what i really should do is 'update-rc.d disable', 
> which creates 'stop' links rather than deleting 'start' links.

Exactly. insserv should never need to be called directly, update-rc.d continues
to be the interface for all things related to adding/removing(/disabling) init
scripts.

Thanks, Kel.





More information about the Pkg-sysvinit-devel mailing list