[Jörg]
> It adds only the last for the same runlevel. But the embedded
> updatercd in /var/lib/dpkg/info/initscripts.postinst does it
> right. Do you like to fix it? I think it is rarely used that way but
> it should work.

I believe it is a bad idea to try to insert the same init.d script
several times in the startup sequence for a given runlevel.  When
doing this, it is no longer possible to use dependency information
embedded in the script header (like the LSB init.d comment headers) to
verity correct boot sequence.

If a script need to be executed twice, I would recommend making one
wrapper with its own dependency information in the header calling the
other script.

Because of this, I believe your example should fail, and that the
current behaviour should be kept.  The code in postinst should be
changed to only install a given init.d script once.

Reply via email to