What's the insserv way of disabling services
Michael Biebl
biebl at debian.org
Thu Apr 17 02:27:27 UTC 2008
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?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 252 bytes
Desc: OpenPGP digital signature
Url : http://lists.alioth.debian.org/pipermail/initscripts-ng-devel/attachments/20080417/b03937b0/attachment.pgp
More information about the initscripts-ng-devel
mailing list