"Michael H. Warfield" <m...@wittsend.com>
writes:

> Yeah, that's something where I wish we had an "onboot" and/or "disabled"
> config file like OpenVZ does.  So you can have some configured but that
> don't autoboot when you boot the system.  As that stands, you would have
> to rename or remove the config file.  :-P

As a workaround I have my init script look for /forceboot inside the
container's rootfs.  I was going to have an entry like
"upstart.autostart = [yes|no]" in the lxc.conf file, but lxc-start
doesn't like unrecognized entries.

>> * the stop function greps for /sbin/init in container inittab instead of 
>> trying to allow for any random container pid #1
>
> Yeah, that little trick won't work with Ubuntu or Fedora using upstart.

AFAIK init inside the container *MUST* be pid 1.  pid 1 is handled
specially by the kernel, such silently discarding all kill -9's sent to
it.

>> * starts containers in screen
>> - I have not figured out what it would take to get nice behavior out of 
>> lxc-console yet and screen is both easy and standard.
>
> I usually start them with logging enabled and redirected with the -o
> option.  To each his own.

I set lxc.console = /var/log/lxc/$utsname.log, which captures the
container's /dev/console.  lxc-console attaches to gettys on the
container's /dev/tty[1-6].

If something is wrong in the start script, I can run lxc-start manually,
replacing -d with -s lxc.console=/dev/stderr to get an interactive
/dev/console.


------------------------------------------------------------------------------
What happens now with your Lotus Notes apps - do you make another costly 
upgrade, or settle for being marooned without product support? Time to move
off Lotus Notes and onto the cloud with Force.com, apps are easier to build,
use, and manage than apps on traditional platforms. Sign up for the Lotus 
Notes Migration Kit to learn more. http://p.sf.net/sfu/salesforce-d2d
_______________________________________________
Lxc-users mailing list
Lxc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/lxc-users

Reply via email to