mirror of
https://github.com/checkpoint-restore/criu
synced 2025-08-22 01:51:51 +00:00
criu-ns: add support for 'check' action
Signed-off-by: Radostin Stoyanov <rstoyanov@fedoraproject.org>
This commit is contained in:
parent
868bffba4d
commit
6be9345fb1
@ -14,6 +14,8 @@ SYNOPSIS
|
||||
|
||||
*criu-ns* 'restore' [<options>]
|
||||
|
||||
*criu-ns* 'check' [<options>]
|
||||
|
||||
DESCRIPTION
|
||||
-----------
|
||||
The *criu-ns* command executes 'criu' in a new PID and mount namespace.
|
||||
|
@ -214,6 +214,7 @@ Usage:
|
||||
dump checkpoint a process/tree identified by pid
|
||||
pre-dump pre-dump task(s) minimizing their frozen time
|
||||
restore restore a process/tree
|
||||
check checks whether the kernel support is up-to-date
|
||||
""".format(sys.argv[0]))
|
||||
|
||||
|
||||
@ -227,6 +228,8 @@ if __name__ == "__main__":
|
||||
res = wrap_restore()
|
||||
elif action in ['dump', 'pre-dump']:
|
||||
res = wrap_dump()
|
||||
elif action == 'check':
|
||||
run_criu(sys.argv[1:])
|
||||
else:
|
||||
print('Unsupported action {} for criu-ns'.format(action))
|
||||
res = -1
|
||||
|
Loading…
x
Reference in New Issue
Block a user