[Lxc-users] Restarting LXC containers after power failure

Robin Monjo (appldiget) robin.monjo at applidget.com
Mon May 6 13:44:57 UTC 2013


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.parks at 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:tompos at martos.bme.hu] 
> Sent: Monday, May 06, 2013 8:26 PM
> To: lxc-users at 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 at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/lxc-users





More information about the lxc-users mailing list