mirror of
https://github.com/checkpoint-restore/criu.git
synced 2026-01-23 02:14:37 +00:00
scripts: Add script to abort restore at the end
Usefult to test restore time, for example. Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
This commit is contained in:
parent
5e5783b4e4
commit
1e837af193
1 changed files with 14 additions and 0 deletions
14
scripts/fake-restore.sh
Executable file
14
scripts/fake-restore.sh
Executable file
|
|
@ -0,0 +1,14 @@
|
|||
#!/bin/bash
|
||||
#
|
||||
# A stupid script to abort restore at the very end. Useful to test
|
||||
# restore w/o letting the restored processes continue running. E.g.
|
||||
# can be used to measure the restore time.
|
||||
#
|
||||
# Usage:
|
||||
# criu restore <options> --action-script $(pwd)/scripts/fake-restore.sh
|
||||
#
|
||||
if [ "$CRTOOLS_SCRIPT_ACTION" == "post-restore" ]; then
|
||||
exit 1
|
||||
else
|
||||
exit 0
|
||||
fi
|
||||
Loading…
Add table
Add a link
Reference in a new issue