Changes

Jump to navigation Jump to search
651 bytes added ,  19:57, 16 February 2019
m
Add note for orphan-pts-master
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>network-lock</code>
+
;<code>pre-dump</code>
: request to lock a container network (used by Docker and [[LXC]])
+
: called before the beginning of dump
   −
;<code>network-unlock</code>
+
;<code>post-dump</code>
: requested to unlock a container network (used by Docker and [[LXC]])
+
: called when CRIU finished dumping tasks and before unfreezing them
   −
;<code>post-dump</code>
+
;<code>pre-restore</code>
: called when CRIU finished dumping tasks before unfreezing them
+
: called before the beginning of restore
    
;<code>post-restore</code>
 
;<code>post-restore</code>
: called when CRIU has finished restoring tasks before unlocking the network
+
: called when CRIU has finished restoring tasks and before unlocking the network
 +
 
 +
;<code>network-lock</code>
 +
: request to lock a container network (used by [[Docker]] and [[LXC]])
 +
 
 +
;<code>network-unlock</code>
 +
: requested to unlock a container network (used by Docker and LXC)
    
;<code>setup-namespaces</code>
 
;<code>setup-namespaces</code>
 
: called when the root task is alive and new set of namespaces is created to set them up
 
: 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-resume</code>
 +
: called at the very end, when everything is restored and processes were resumed
 +
 +
;<code>orphan-pts-master</code>
 +
: called after master pty is opened and unlocked (used by Docker). Used only in RPC mode, and the notification message contains a file descriptor for the master pty.
    
== CLI ==
 
== CLI ==
277

edits

Navigation menu