[gobolinux-devel] Boot sequence enhancement
Jonatan Liljedahl
lijon at kymatica.com
Fri Aug 29 17:37:59 NZST 2008
Carlo Calica wrote:
> On Wed, Aug 27, 2008 at 9:02 AM, Jonatan Liljedahl <lijon at kymatica.com> wrote:
>> One thing I noticed about gobo Tasks is that some takes start/stop
>> arguments and some does not. Doing StopTask Network brings down the
>> interfaces, while StopTask HAL would try to start another copy of hald!
>>
>
> Yes, our Tasks are a mess. I have a simple #! wrapper that handles
> the arg processing and calls start()/stop() hooks as required. There
> are restart() and reload() hooks as well but if they don't exist the
> wrapper just calls the stop() and start() hooks in order. I haven't
> had time to benchmark a boot using the wrapper to see if there's a
> slowdown.
>
> The goal is to make Tasks similar to recipes. Metadata could be added
> as vars and more hooks defined as needed. Some form a dependency
> handling is worthwhile. See [1] for a "need" based approach.
> Hopefully, the wrapper could abstract away the differences between
> basic init, advanced features of Upstart, InitNG.
>
> That leaves HOW tasks are selected for boot. I think this should
> outside the Task files themselves. With dependency handling, this
> could be an array in BootOptions, but I don't really like that either.
I'd like a /S/S/BootTasks file with one task per line, with # comments..
--
/Jonatan [ http://kymatica.com ]
More information about the gobolinux-devel
mailing list