2
0
mirror of https://github.com/checkpoint-restore/criu synced 2025-08-26 11:57:52 +00:00
criu/scripts/fake-restore.sh
Pavel Emelyanov 1e837af193 scripts: Add script to abort restore at the end
Usefult to test restore time, for example.

Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
2014-02-05 19:40:47 +04:00

15 lines
357 B
Bash
Executable File

#!/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