Cedric Le Goater [[email protected]] 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
[email protected]
https://lists.linux-foundation.org/mailman/listinfo/containers

_______________________________________________
Devel mailing list
[email protected]
https://openvz.org/mailman/listinfo/devel

Reply via email to