[lxc-users] Restarting Process in an LXC Container

Thouraya TH thouraya87 at gmail.com
Thu Jan 15 17:04:46 UTC 2015


Hello,

Please,i have a question about the restarting process of a LXC container.
i run this script http://criu.org/Simple_loop in a container:

1)
ubuntu at worker:/home$ ./test.sh
Wed Jan 14 22:30:23 CET 2015
Wed Jan 14 22:30:24 CET 2015
Wed Jan 14 22:30:25 CET 2015
Wed Jan 14 22:30:26 CET 2015
Wed Jan 14 22:30:35 CET 2015
.......................
2) i have done the dumping process:
      root at g-3:/home# lxc-checkpoint *-s* -D /home/ImGLXC1Worker -n worker
3) i have restart the container:
    root at g-3:/home/ImGLXC1Worker# lxc-checkpoint -r -D /home/ImGLXC1Worker
-n worker
     # lxc-ls -f
NAME     STATE    IPV4        IPV6  GROUPS  AUTOSTART
-----------------------------------------------------
worker   RUNNING  10.0.3.109  -     -       NO

4) ssh ubuntu@$(sudo lxc-info -n worker -H -i)
5) ubuntu at worker:/home$ ps


*  PID TTY          TIME CMD  304 pts/0    00:00:00 bash  318 pts/0
00:00:00 ps*

The process "test" didn't restart!

i have done another test : ubuntu at worker:/home$ ./test.sh > Results.txt /
Dumping the container / Restarting the container/ The process "test" didn't
restart! and the file Results.txt didn't change !

Have you an idea please ?

Thanks a lot.
Best Regards.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linuxcontainers.org/pipermail/lxc-users/attachments/20150115/4cd62922/attachment.html>


More information about the lxc-users mailing list