I wanted to play around with criu, a project for checkpointing/restoring linux processes. For that I am playing around with the hello-world of criu, which is checkpointing and restoring a simple loop.
I executed the following steps:
create a simple looping program:
$ cat > test.sh <<-EOF
#!/bin/sh
while :; do
sleep 1
date
done
EOF
$ chmod +x test.sh
run it:
$ ./test.sh
$ ps -C test.sh
PID TTY TIME CMD
2621 pts/1 00:00:00 test.sh
dump it:
# sudo criu dump -vvvv -o dump.log -t 2621 --shell-job && echo OK
OK
restore it:
# sudo criu restore -vvvv -o restore.log --shell-job
The restoring does not work. It should restore the loop process where it left off. The process should continue to print in the console, but nothing happens. There are also no error messages.
My System:
Ubuntu 19.04
criu 3.8.1