If your host system i a ubuntu box, you can write an upstart script that will automatically restart your container whenever it goes down. I guess init is the equivalent of upstart in other distributions
On May 6, 2013, at 3:36 PM, David Parks <david.pa...@frugg.com> wrote: > Oh, that will do nicely. We'll just write an LXC start/stop script to update > the symbolic link on start/stop. That would seem like a great little optional > feature to build into lxc-start perhaps, too. > > Thanks! > David > > > -----Original Message----- > From: Tamas Papp [mailto:tom...@martos.bme.hu] > Sent: Monday, May 06, 2013 8:26 PM > To: lxc-users@lists.sourceforge.net > Cc: David Parks; Ha Ho > Subject: Re: [Lxc-users] Restarting LXC containers after power failure > > On 05/06/2013 02:58 PM, David Parks wrote: >> We just had a datacenter power failure, upon restart of course our LXC >> containers were stopped. It would be just dandy if there were an LXC >> option to restart the containers that were already running before the sudden >> failure. >> >> Is there any such capability? > > There is no such option. > You can enable containers to start automatically at boot time, see > /etc/lxc/auto/ . > > Cheers, > tamas > > > ------------------------------------------------------------------------------ > Introducing AppDynamics Lite, a free troubleshooting tool for Java/.NET > Get 100% visibility into your production application - at no cost. > Code-level diagnostics for performance bottlenecks with <2% overhead > Download for free and get started troubleshooting in minutes. > http://p.sf.net/sfu/appdyn_d2d_ap1 > _______________________________________________ > Lxc-users mailing list > Lxc-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/lxc-users ------------------------------------------------------------------------------ Introducing AppDynamics Lite, a free troubleshooting tool for Java/.NET Get 100% visibility into your production application - at no cost. Code-level diagnostics for performance bottlenecks with <2% overhead Download for free and get started troubleshooting in minutes. http://p.sf.net/sfu/appdyn_d2d_ap1 _______________________________________________ Lxc-users mailing list Lxc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/lxc-users