[Michael Biebl]
> In summary, insserv should know, if the existing symlinks have local 
> modifications, or not. If not, it should update the symlinks to match 
> the information in the LSB init header.

I agree that it is not an optimal way of solving it, but for postinst
scripts to keep working with sysv-rc and file-rc, they need to use the
interface provided by update-rc.d to update the runlevels.  At the
moment, that require a removal and an insertion.  I hope someone can
find time to specify a new feature of update-rc.d for updating the
runlevel settings, but until that is available, removing and adding is
the only available way to do it.

> Example: As maintainer of dbus, I decide that dbus-daemon doesn't
> need kill symlinks for 0 6, so I remove 0 6 from Default-Stop. On
> package upgrades the obsolete symlinks should be removed
> automatically.  Otherwise I have to write a postinst script, have to
> run "update-rc.d dbus remove" and mustn't forget to use -f,
> otherwise dbus is not removed as a lot of other services depend on
> it. This is error prone and cumbersome.

I agree.  Yet it is the only policy compliant way to do it. :(

This can not be solved by insserv alone.  It need to be solved by
changing how update-rc.d is supposed to work.

Happy hacking,
-- 
Petter Reinholdtsen



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to