Changes

551 bytes added ,  19:09, 12 February 2019
Update list of supported hooks
Line 1: Line 1:  
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:
 
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>
 
;<code>network-lock</code>
Line 7: Line 19:  
: requested to unlock a container network (used by Docker and LXC)
 
: requested to unlock a container network (used by Docker and LXC)
   −
;<code>post-dump</code>
+
;<code>setup-namespaces</code>
: called when CRIU finished dumping tasks before unfreezing them
+
: called when the root task is alive and new set of namespaces is created to set them up
 +
 
 +
;<code>post-setup-namespaces</code>
 +
: called after namespaces are configured
 +
 
 +
;<code>pre-resume</code>
 +
: called at the moment when processes and resources are already restored but not yet in running state
   −
;<code>post-restore</code>
+
;<code>post-resume</code>
: called when CRIU has finished restoring tasks before unlocking the network
+
: called at the very end, when everything is restored and processes were resumed
   −
;<code>setup-namespaces</code>
+
;<code>orphan-pts-master</code>
: called when the root task is alive and new set of namespaces is created to set them up
+
: called after master pty is opened and unlocked (used by Docker)
    
== CLI ==
 
== CLI ==
277

edits