<div dir="ltr">Yeah, I think you all correct and I'm just confused - probably direct effect of lack of caffeine. And no, it's not complicating something for me, it's working great. I just want to make sure that I'm wrong :)</div>

<div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Apr 26, 2013 at 4:37 PM, Dwight Engen <span dir="ltr"><<a href="mailto:dwight.engen@oracle.com" target="_blank">dwight.engen@oracle.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5">On Fri, 26 Apr 2013 22:07:22 +0200<br>
Stéphane Graber <<a href="mailto:stgraber@ubuntu.com">stgraber@ubuntu.com</a>> wrote:<br>
<br>
> On 04/26/2013 09:42 PM, S.Çağlar Onur wrote:<br>
> > Hey Dwight,<br>
> ><br>
> > I'm observing following behavior with staging tree and just wanted<br>
> > to make sure that what I'm seeing is the expected;<br>
> ><br>
> > * Initially nothing runs<br>
> ><br>
> > [caglar@qgq:~/Projects/lxc/examples] sudo ./list<br>
> > bankai (STOPPED)<br>
> > bleach (STOPPED)<br>
> > zangetsu (STOPPED)<br>
> ><br>
> > * I start one container using the API<br>
> ><br>
> > [caglar@qgq:~/Projects/lxc/examples] sudo ./start -name zangetsu<br>
> > Starting the container...<br>
> ><br>
> > [caglar@qgq:~/Projects/lxc/examples] sudo ./list<br>
> > bankai (STOPPED)<br>
> > bleach (STOPPED)<br>
> > zangetsu (RUNNING)<br>
> ><br>
> > * monitord starts as expected but exits after 30 seconds later<br>
> > (although container is still running);<br>
> ><br>
> > [caglar@qgq:~/Projects/lxc-upstream(staging)] tail -f<br>
> > /var/lib/lxc/lxc-monitord.log<br>
> >    lxc-monitord 1367004858.616 NOTICE   lxc_monitord - monitoring<br>
> > lxcpath /var/lib/lxc<br>
> >    lxc-monitord 1367004888.677 NOTICE   lxc_monitord - no clients<br>
> > for 30 seconds, exiting<br>
> >    lxc-monitord 1367004888.677 NOTICE   lxc_monitord - monitor<br>
> > exiting<br>
> ><br>
> > [caglar@qgq:~/Projects/lxc/examples] sudo ./list<br>
> > bankai (STOPPED)<br>
> > bleach (STOPPED)<br>
> > zangetsu (RUNNING)<br>
> ><br>
> > [caglar@qgq:~/Projects/lxc/examples] ps aux | grep monitord<br>
> > caglar   28404  0.0  0.0   7240   624 pts/54   S+   15:34   0:00<br>
> > tail -f /var/lib/lxc/lxc-monitord.log<br>
> > caglar   29037  0.0  0.0   9436   948 pts/0    S+   15:38   0:00<br>
> > grep --color=auto monitord<br>
> > [caglar@qgq:~/Projects/lxc/examples]<br>
> ><br>
> > I'm asking cause I was under the impression that lxc-monitord will<br>
> > keep running as long as there is a container. Am I wrong?<br>
><br>
> I believe the monitor will get spawned the first time something needs<br>
> it (lxc-monitor/lxc-wait) and exit 30s after the last client<br>
> disconnects. It'll then be respawned the next time lxc-monitor or<br>
> lxc-wait is started again that container.<br>
<br>
</div></div>Yep Stéphane, that is correct. Also note that the monitord is per<br>
lxcpath, not per container.<br>
<br>
Çağlar, you may have been slightly confused because if you start a<br>
container in daemon mode through the API, the API does an internal<br>
lxc_wait() and thus a monitord will get spawned when you first start a<br>
container, but will go away ~30 seconds afterwards.<br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br>S.Çağlar Onur <<a href="mailto:caglar@10ur.org">caglar@10ur.org</a>>
</div>