Hi,

I was wondering, how to correctly disable a service with insserv.

In the old style way, one would *not* run
update-rc.d $service remove, because that would recreate the symlink on the next package upgrade, but instead rename the symlinks from S?? to K??

insserv -r by default removes all symlinks, so a package upgrade will recreate them. 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.
Besides, manually renaming the symlinks from S to K is cumbersome.


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.

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.


If a service is disabled,
insserv $service would be no-op.


What do you think?

Cheers,
Michael
--
Why is it that all of the instruments seeking intelligent life in the
universe are pointed away from Earth?

Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
initscripts-ng-devel mailing list
[email protected]
http://lists.alioth.debian.org/mailman/listinfo/initscripts-ng-devel

Reply via email to