Upstart blocking - is it a problem?

Pekka.Pessi at nokia.com Pekka.Pessi at nokia.com
Mon Dec 28 10:29:20 EET 2009


> If I take out the backgrounding, it works as expected, BUT it blocks the
> initctl command until I do "initctl emit yyy" from another console.
>
> My worry is that if starting MySQL blocks whatever sends the signals
> during startup, then anything else dependent on that signal won't be
> started until MySQL stops.
>
> Am I worrying unnecessarily? Or is there something glaringly obvious
> that I'm doing wrong?

You should add a "service" stanza to your job file. If you have it or "restart" stanza, initctl exits once your main process is started.

Missing "service" is not very serious omission, it only affects the initctl command, init itself continues running and processing other jobs and events asynchronously. I think there are quite a few jobs in system sw that misses it.

--Pekka
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.maemo.org/pipermail/maemo-developers/attachments/20091228/8959f8b1/attachment.htm 


More information about the maemo-developers mailing list