[Devel] Re: [PATCH 0/6][lxc][v3] Link LXC with USERCR

Sukadev Bhattiprolu sukadev at linux.vnet.ibm.com
Wed Mar 31 22:03:03 PDT 2010


Cedric Le Goater [clg at fr.ibm.com] wrote:
>> 	#!/bin/sh
>>
>> 	me=`basename "$0" 2>/dev/null`
>> 	ndigit=${1:-1000}
>>
>> 	echo $me - $ndigit digits
>> 	echo "scale=$ndigit;a(1)*4" | bc -l
>>
>> can you run in a terminal :
>>
>> 	$ lxc-execute -n pi1 -- ./pi1.sh 3000&
>> 	$ lxc-checkpoint -n pi1 -d ./ckpt -k
>> 	$ lxc-restart -n pi1 -d ./ckpt
>
> please try that suka, it's much more interesting than sleep which can
> silently segfault after restart.

Agree.  BTW, after the sleep I tested C/R of a VNC server with a vi session
running inside.

I tried the above program, which is definitely more interesting, but am
having trouble with stdout after restart - restart seems to succeed, but
nothing shows up on stdout. If I redirect the output of "bc -l" to a file,
the C/R (with lxc) works fine.

I am investigating the stdout issue though.

Thanks,

Sukadev
_______________________________________________
Containers mailing list
Containers at lists.linux-foundation.org
https://lists.linux-foundation.org/mailman/listinfo/containers




More information about the Devel mailing list