<div dir="ltr"><br><br><div class="gmail_quote">On Fri, Aug 29, 2008 at 7:37 AM, Jonatan Liljedahl <span dir="ltr">&lt;<a href="mailto:lijon@kymatica.com">lijon@kymatica.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="Ih2E3d">Carlo Calica wrote:<br>
&gt; On Wed, Aug 27, 2008 at 9:02 AM, Jonatan Liljedahl &lt;<a href="mailto:lijon@kymatica.com">lijon@kymatica.com</a>&gt; wrote:<br>
&gt;&gt; One thing I noticed about gobo Tasks is that some takes start/stop<br>
&gt;&gt; arguments and some does not. Doing StopTask Network brings down the<br>
&gt;&gt; interfaces, while StopTask HAL would try to start another copy of hald!<br>
&gt;&gt;<br>
&gt;<br>
&gt; Yes, our Tasks are a mess. &nbsp;I have a simple #! wrapper that handles<br>
&gt; the arg processing and calls start()/stop() hooks as required. &nbsp;There<br>
&gt; are restart() and reload() hooks as well but if they don&#39;t exist the<br>
&gt; wrapper just calls the stop() and start() hooks in order. &nbsp;I haven&#39;t<br>
&gt; had time to benchmark a boot using the wrapper to see if there&#39;s a<br>
&gt; slowdown.<br>
&gt;<br>
&gt; The goal is to make Tasks similar to recipes. &nbsp;Metadata could be added<br>
&gt; as vars and more hooks defined as needed. &nbsp;Some form a dependency<br>
&gt; handling is worthwhile. &nbsp;See [1] for a &quot;need&quot; based approach.<br>
&gt; Hopefully, the wrapper could abstract away the differences between<br>
&gt; basic init, advanced features of Upstart, InitNG.<br>
&gt;<br>
&gt; That leaves HOW tasks are selected for boot. &nbsp;I think this should<br>
&gt; outside the Task files themselves. &nbsp;With dependency handling, this<br>
&gt; could be an array in BootOptions, but I don&#39;t really like that either.<br>
<br>
</div>I&#39;d like a /S/S/BootTasks file with one task per line, with # comments..<br>
<font color="#888888"></font></blockquote><div><br>I kind of like the idea with that file too.<br>I will certainly look into the init projects (upstart, initNG, eInit).<br>Lets see if I can provide a patch, or new way of doing stuff, which you all like ;)<br>
&nbsp;</div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><font color="#888888"><br>
--<br>
/Jonatan &nbsp; &nbsp; &nbsp; &nbsp; [ <a href="http://kymatica.com" target="_blank">http://kymatica.com</a> ]<br>
</font><div><div></div><div class="Wj3C7c">_______________________________________________<br>
gobolinux-devel mailing list<br>
<a href="mailto:gobolinux-devel@lists.gobolinux.org">gobolinux-devel@lists.gobolinux.org</a><br>
<a href="http://lists.gobolinux.org/mailman/listinfo/gobolinux-devel" target="_blank">http://lists.gobolinux.org/mailman/listinfo/gobolinux-devel</a><br>
</div></div></blockquote></div><br></div>