Re: [lxc-devel] [PATCH] Add mechanism for container to notify host about end of boot

2012-09-14 Thread Serge Hallyn
Quoting Christian Seiler (christ...@iwakd.de): > This patch adds a simple notification system that allows the container to > notify the host (in particular, the lxc-start process) that the boot process > has been completed successfully. It also adds an additional status BOOTING > that lxc-info may

Re: [lxc-devel] [PATCH] Add mechanism for container to notify host about end of boot

2012-09-14 Thread Christian Seiler
> I must admit the details aren't worked out, but the rough idea was > something like the following. On the host have a directory per > container, in which the socket is setup > >/var/lib/systemd/container/ > > And bind '/var/lib/systemd/containerXXX' into the container in some > location,

Re: [lxc-devel] [PATCH] Add mechanism for container to notify host about end of boot

2012-09-14 Thread Daniel P. Berrange
On Fri, Sep 14, 2012 at 12:12:57PM +0100, Christian Seiler wrote: > >>If we want to have a back-channel, we'd need a socket, which > >>makes just > >>doing echo RUNNING > /dev/lxc-notify impossible, you'd need a > >>special > >>program for that. Having the template scripts dump an additional > >>sc

Re: [lxc-devel] [PATCH] Add mechanism for container to notify host about end of boot

2012-09-14 Thread Christian Seiler
> I'm very pleased about the discussion and efforts to implement such a > feature because I already have asked for it in former times. In the > one hand, this fifo approach may be used for more than the current > task. But in the other hand, it's seems to need a bunch of > dependencies. You mean t

Re: [lxc-devel] [PATCH] Add mechanism for container to notify host about end of boot

2012-09-14 Thread Christian Seiler
>> If we want to have a back-channel, we'd need a socket, which makes >> just >> doing echo RUNNING > /dev/lxc-notify impossible, you'd need a >> special >> program for that. Having the template scripts dump an additional >> script >> or upstart job or systemd unit file or whatever in the contai

Re: [lxc-devel] [PATCH] Add mechanism for container to notify host about end of boot

2012-09-14 Thread Daniel P. Berrange
On Thu, Sep 13, 2012 at 11:26:39PM +0200, Christian Seiler wrote: > > I like the idea but haven't looked at the implementation yet as the > > patch is really quite large. Quickly scanning through I briefly noticed > > that the copyright headers for the new files are wrong (refer to IBM and > > Dani

Re: [lxc-devel] [Spam-Wahrscheinlichkeit=99]Re: [PATCH] Add mechanism for container to notify host about end of boot

2012-09-14 Thread Jäkel , Guido
Dear Christian, Stéphane and Serge, >If we want to have a back-channel, we'd need a socket, ... > [...] >On the other hand, it wouldn't be too complicated to have two special files >lying around: ... I'm very pleased about the discussion and efforts to implement such a feature because I already