[Lxc-users] regarding lxc "states" available to lxc-monitor or lxc-wait usage
Vallevand, Mark K
Mark.Vallevand at UNISYS.com
Thu May 9 16:42:58 UTC 2013
I don't think signals to the container init process is the answer. You can run a single program in a container. When that program reaches a certain state, it could report that it is operational. I don't know what the correct way to do that report using a new lxc feature.
Currently, my program creates a file that indicates it is operational. My container start-up code looks for that file before it assumes that the container is ready.
Regards.
Mark K Vallevand Mark.Vallevand at Unisys.com
May you live in interesting times, may you come to the attention of important people and may all your wishes come true.
THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers.
-----Original Message-----
From: Guido Jäkel [mailto:G.Jaekel at DNB.DE]
Sent: Thursday, May 09, 2013 10:10 AM
To: Serge Hallyn; lxc-users
Subject: Re: [Lxc-users] regarding lxc "states" available to lxc-monitor or lxc-wait usage
>> *Say I have a container app and I want to know when it has finished some
>> initialization task it would be great to be able to somehow utilize
>> lxc-monitor or to use lxc-wait in a script that looked for my "private
>> state" to be reported and then take some further action or initiate some
>> other activity.*
>
> This reminds me of discussions in years past about 'service readiness'
> indication (i.e. for upstart).
Yes, it would be usefull if the container may signal to the host that the startup is finished and all services should have been started.
> I'm not sure how userspace in the container would go about informing the
> monitor of the new state. Any ideas?
May one send signals to the container's init process?
------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and
their applications. This 200-page book is written by three acclaimed
leaders in the field. The early access version is available now.
Download your free book today! http://p.sf.net/sfu/neotech_d2d_may
_______________________________________________
Lxc-users mailing list
Lxc-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/lxc-users
More information about the lxc-users
mailing list