Changes

Jump to: navigation, search

Action scripts

551 bytes added, 12 February
Update list of supported hooks
With the <code>--action-script</code> command line option, CRIU can call your action scripts (also known as hooks) at various stages of dumping/restoring. The following hooks are available:
 
;<code>pre-dump</code>
: called before the beginning of dump
 
;<code>post-dump</code>
: called when CRIU finished dumping tasks and before unfreezing them
 
;<code>pre-restore</code>
: called before the beginning of restore
 
;<code>post-restore</code>
: called when CRIU has finished restoring tasks and before unlocking the network
;<code>network-lock</code>
: requested to unlock a container network (used by Docker and LXC)
;<code>setup-namespaces</code>: called when the root task is alive and new set of namespaces is created to set them up ;<code>post-dumpsetup-namespaces</code>: called after namespaces are configured ;<code>pre-resume</code>: called at the moment when CRIU finished dumping tasks before unfreezing themprocesses and resources are already restored but not yet in running state
;<code>post-restoreresume</code>: called at the very end, when CRIU has finished restoring tasks before unlocking the networkeverything is restored and processes were resumed
;<code>setuporphan-namespacespts-master</code>: called when the root task after master pty is alive opened and new set of namespaces is created to set them upunlocked (used by Docker)
== CLI ==
124
edits

Navigation menu