Dear David,

this will require to persist the current "power state" of a container by some 
kind of marker.  A tricky way is to mark some container-related file, e.g. to 
("miss"-) use the sticky bit of the containers lxc configuration file or to put 
some marker file into the containers rootfs.

This will allow to write an init script that will scan for such a marker and 
(re)start the corresponding container. Using LXC's startup/shutdown hook 
scripts, you may event set such a marker automagical and especially to remove 
it on a regular shutdown. 



>-----Original Message-----
>From: David Parks [mailto:david.pa...@frugg.com]
>Sent: Monday, May 06, 2013 2:59 PM
>To: lxc-users@lists.sourceforge.net
>Cc: Ha Ho
>Subject: [Spam-Wahrscheinlichkeit=87][Lxc-users] Restarting LXC containers 
>after power failure
>
>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?


------------------------------------------------------------------------------
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

Reply via email to