[lxc-devel] startup scripts for lxc containers?

Michael H. Warfield mhw at WittsEnd.com
Sat Jan 16 19:35:19 UTC 2010


On Sat, 2010-01-16 at 14:20 -0500, Michael H. Warfield wrote:

: - snip

> If that checking is being done in a cron job already, is there any
> reason for not simply checking the terminating run level in the
> containers utmp file?
> 
> This is the logic I'm currently using on the host (just the loop part of
> the script)...

: - Snip

> # He's rebooting...  Kill the VM and start again...
>                                 echo "Rebooting ${VM} ${UTSNAME}"
>                                 lxc-stop -n ${VM}
>                                 lxc-wait -n ${VM} -s STOPPED
>                                 # We need to add our log back in here.
>                                 lxc-start -d -n ${VM}

Crud...  Those last two lines are NOT in the runnings script were
obviously wrong.  Sigh...

: - snip

> 
> > - Dietmar
> 
> Mike

-- 
Michael H. Warfield (AI4NB) | (770) 985-6132 |  mhw at WittsEnd.com
   /\/\|=mhw=|\/\/          | (678) 463-0932 |  http://www.wittsend.com/mhw/
   NIC whois: MHW9          | An optimist believes we live in the best of all
 PGP Key: 0x674627FF        | possible worlds.  A pessimist is sure of it!
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 482 bytes
Desc: This is a digitally signed message part
URL: <http://lists.linuxcontainers.org/pipermail/lxc-devel/attachments/20100116/b1976b84/attachment.pgp>


More information about the lxc-devel mailing list