Commit 1e837af1 authored by Pavel Emelyanov's avatar Pavel Emelyanov

scripts: Add script to abort restore at the end

Usefult to test restore time, for example.
Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent 5e5783b4
#!/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
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment