init script generators ( was: Re: proper handling of communication channels in debian)

Felipe Sateler fsateler at gmail.com
Fri May 4 17:32:52 UTC 2007


Erich Schubert wrote:

> Hi,
>> > Finally, even with all that information available inside a Debian
>> > package, this would still leave one question unanswered: Who triggers
>> > init script generation?
>>
>> dpkg-trigger (although not available yet) should fit this task.
> 
> The postinst of the package shipping the meta-init-script is more
> appropriate.

Why? AFAIU, for the dpkg-trigger approach to work, init packages just need
to register a file trigger in (suppose) /usr/share/meta-inits. Then any
package installing a meta init script in that directory would cause the
trigger to be set, and then the init scripts would be created for all
installed inits. Further, any init system being installed could launch the
trigger manually in their postinst, thus getting scripts generated for any
packages installed.
As an added bonus, these triggers would be executed only once pero install
round. That is, if I do: aptitude install pkg{1,2,3,4,5}, and all 5
packages install init scripts, the generating scripts would be called only
once.

-- 

  Felipe Sateler




More information about the initscripts-ng-devel mailing list