Welcome to mirror list, hosted at ThFree Co, Russian Federation.

fake-restore.sh « scripts - github.com/checkpoint-restore/criu.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 2728fb30d326b971fe916a4f55fece389f305d88 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/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
	touch restore-succeeded
	exit 1
else
	exit 0
fi