Re: [Lxc-users] lxc-start-ephemeral + upstart = pain?

2012-10-05 Thread Serge Hallyn
Quoting Dan Kegel (d...@kegel.com): Hi ho. ( I see https://bugs.launchpad.net/ubuntu/+source/lxc/+bug/1049908 also deals with lxc and upstart, but my use case is probably different.) I'd like to run an ephemeral container in a respawning upstart job, but I don't know how shutdown should

Re: [Lxc-users] lxc-start-ephemeral + upstart = pain?

2012-10-05 Thread Dan Kegel
On Fri, Oct 5, 2012 at 7:21 AM, Serge Hallyn serge.hal...@canonical.com wrote: Might be able to work around this by wrapping lxc-start-ephemeral in a program which forks off the script, then sits waiting for signals (SIGCHILD or SIGINT), and tell upstart to send its signals to the wrapper. I

Re: [Lxc-users] lxc-start-ephemeral + upstart = pain?

2012-10-04 Thread Dan Kegel
I took the coward's way out, adding a pre-stop script that just runs lxc-stop. Dunno how kosher that is, but it seems to work. -- Don't let slow site performance ruin your business. Deploy New Relic APM Deploy New Relic

[Lxc-users] lxc-start-ephemeral + upstart = pain?

2012-10-03 Thread Dan Kegel
Hi ho. ( I see https://bugs.launchpad.net/ubuntu/+source/lxc/+bug/1049908 also deals with lxc and upstart, but my use case is probably different.) I'd like to run an ephemeral container in a respawning upstart job, but I don't know how shutdown should work. Has anybody else tried this? First