<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Fri, May 16, 2014 at 1:24 AM, Fajar A. Nugraha <span dir="ltr"><<a href="mailto:list@fajar.net" target="_blank">list@fajar.net</a>></span> wrote:<br>
<div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">
<div>Works for me. Did you do it like I did?</div><div><br></div><div><div>root@trusty:~# status tty1</div><div>tty1 start/running, process 443</div><div>root@trusty:~# status cron</div>
<div>cron start/running, process 407</div><div>root@trusty:~# status cron</div></div><div><div>root@trusty:~# runlevel </div><div>N 2</div></div><div><br></div></div></div></div></blockquote><div><br></div><div>for clarity purpuses: the above commands were executed on the maverick container. It's just that the hostname of the container is also "trusty" (since by default the rootfs created in /var/cache/lxc* has hostname the same as the host)</div>
<div><br></div><div> </div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr"><div class="gmail_extra">
<div class="gmail_quote"><div>- (in the container) create /etc/init/lxc-console.conf</div><div><br></div>
<div>###</div><div><div>start on stopped rc RUNLEVEL=[2345] and container CONTAINER=lxc</div></div></div></div></div></blockquote><div><br></div><div>this should be only</div><div><br></div><div>start on stopped rc RUNLEVEL=[2345] <br>
</div><div><br></div><div>container detection only works on newer versions of upstart.</div><div><br></div><div><br></div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><div><div>stop on runlevel [!2345]</div><div><br></div><div>respawn</div><div>exec /sbin/getty -8 38400 lxc/console</div></div><div><div>
###</div><div></div></div><div><br></div></div></div></div></blockquote></div></div></div>