What's the insserv way of disabling services
Petter Reinholdtsen
pere at hungry.com
Fri Apr 18 09:46:24 UTC 2008
[Michael Biebl]
> I was wondering, how to correctly disable a service with insserv.
I believe the correct way is to rename the S?? to K?? to document that
the service is disabled.
> Renaming S?? to K?? on the other hand doesn't seem to make sense
> with insserv, as the priorities are not fixed and maybe confuse
> insserv when it calculates the stop priorities.
I do not believe it confuses insserv.
> Imho insserv should have a option to disable a service completely.
> An idea would be to store this information in a state file
> /etc/init.d/.depend.disabled.
Duplicating the information seem like a bad idea to me.
> insserv -D --disable would disable the service and add it to the
> state file insserv -e --enable would enable the service and remove
> it from the state file.
Such feature should be specified in the update-rc.d API, and
implemented all over. Doing it only for insserv is not a good way for
Debian, as we need to have a common way for all boot systems.
Happy hacking,
--
Petter Reinholdtsen
More information about the initscripts-ng-devel
mailing list