<div dir="ltr"><div><div>root@thouraya-Lenovo-3000-N500:/home/thouraya# cd imgDir/<br>root@thouraya-Lenovo-3000-N500:/home/thouraya/imgDir# criu restore -d -vvv -o restore.log &amp;&amp; echo OK<br>OK<br>root@thouraya-Lenovo-3000-N500:/home/thouraya/imgDir# ls<br>
cgroup.img         fifo-data.img        netlinksk.img      sigacts-20099.img<br>core-19654.img     fifo.img             ns-files.img       signalfd.img<br>core-20099.img     filelocks-19654.img  packetsk.img       signal-p-19654.img<br>
creds-19654.img    filelocks-20099.img  pagemap-19654.img  signal-p-20099.img<br>creds-20099.img    fs-19654.img         pagemap-20099.img  signal-s-19654.img<br>dump.log           fs-20099.img         pages-1.img        signal-s-20099.img<br>
eventfd.img        ids-19654.img        pages-2.img        sk-queues.img<br>eventpoll.img      ids-20099.img        pipes-data.img     stats-dump<br>eventpoll-tfd.img  inetsk.img           pipes.img          stats-restore<br>
ext-files.img      inotify.img          pstree.img         tty.img<br>fanotify.img       inotify-wd.img       reg-files.img      tty-info.img<br>fanotify-mark.img  inventory.img        remap-fpath.img    tunfile.img<br>fdinfo-2.img       mm-19654.img         restore.log        unixsk.img<br>
fdinfo-3.img       mm-20099.img         sigacts-19654.img<br>root@thouraya-Lenovo-3000-N500:/home/thouraya/imgDir# vim restore.log <br><br><br></div>i have a new file restore.log , <br></div><div>Here is the initial  code:<br>
<pre>$ cat &gt; test.sh &lt;&lt;-EOF
#!/bin/sh
while :; do
    sleep 1
    date
done
EOF
$ chmod +x test.sh<br>$ setsid ./test.sh  &lt; /dev/null &amp;&gt; test.log &amp;<br></pre><pre>My question: <span id="result_box" class="" lang="en"><span class="">besides</span> <span class="">this file</span><span class="">, what</span> <span class="">I must have </span><span class="">? the time should increment in the  test.log file ?</span></span></pre>
<br></div><div>Thanks a lot.<br></div><div>Bests. <br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">2014-07-15 16:13 GMT+01:00 Pavel Emelyanov <span dir="ltr">&lt;<a href="mailto:xemul@parallels.com" target="_blank">xemul@parallels.com</a>&gt;</span>:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="">On 07/15/2014 07:10 PM, Thouraya TH wrote:<br>
&gt; Hello,<br>
&gt;<br>
&gt; Yesterday, i have done the dump process<br>
&gt; <a href="http://criu.org/Simple_loop" target="_blank">http://criu.org/Simple_loop</a><br>
&gt;<br>
&gt; I&#39;d like to test the restart Process,(in the example see url)<br>
</div>&gt; _<a href="http://criu.org/Simple_loop_" target="_blank">http://criu.org/Simple_loop_</a><br>
<div class="">&gt; Restore the test process:<br>
&gt; # criu restore -d -t 2221 -vvv -o restore.log &amp;&amp; echo OK<br>
&gt; OK<br>
&gt;<br>
&gt; i have saved all dump files in a directory:<br>
&gt; thouraya@thouraya-Lenovo-3000-N500:~/imgDir$ ls<br>
&gt; cgroup.img         fifo-data.img        mm-18885.img       sigacts-18885.img<br>
&gt; core-13319.img     fifo.img             netlinksk.img      signalfd.img<br>
&gt; core-18885.img     filelocks-13319.img  ns-files.img       signal-p-13319.img<br>
&gt; creds-13319.img    filelocks-18885.img  packetsk.img       signal-p-18885.img<br>
&gt; creds-18885.img    fs-13319.img         pagemap-13319.img  signal-s-13319.img<br>
&gt; dump.log           fs-18885.img         pagemap-18885.img  signal-s-18885.img<br>
&gt; eventfd.img        ghost-file-1.img     pages-1.img        sk-queues.img<br>
&gt; eventpoll.img      ids-13319.img        pages-2.img        stats-dump<br>
&gt; eventpoll-tfd.img  ids-18885.img        pipes-data.img     tty.img<br>
&gt; ext-files.img      inetsk.img           pipes.img          tty-info.img<br>
&gt; fanotify.img       inotify.img          pstree.img         tunfile.img<br>
&gt; fanotify-mark.img  inotify-wd.img       reg-files.img      unixsk.img<br>
&gt; fdinfo-2.img       inventory.img        remap-fpath.img<br>
&gt; fdinfo-3.img       mm-13319.img         sigacts-13319.img<br>
&gt;<br>
&gt; My question how get the process id (2221 in the example) ?<br>
<br>
</div>On restore the -t option is ignored, since pids to restore are<br>
read from the image files.<br>
<br>
Thanks,<br>
Pavel<br>
<br>
<br>
</blockquote></div><br></div>