Difference between revisions of "Action scripts"

From CRIU
Jump to navigation Jump to search
Line 1: Line 1:
The <code>CRTOOLS_SCRIPT_ACTION</code> can be one of
+
The criu can call your hooks on various stages of dumping/restoring. These hooks are added with the --action-script shell-code-to-execute option. When called, the CRTOOLS_SCRIPT_ACTION environment is set to a value determining which type of action is performed. It can be one of
  
 
;network-lock
 
;network-lock

Revision as of 11:03, 11 November 2013

The criu can call your hooks on various stages of dumping/restoring. These hooks are added with the --action-script shell-code-to-execute option. When called, the CRTOOLS_SCRIPT_ACTION environment is set to a value determining which type of action is performed. It can be one of

network-lock
request to lock an LXC container network
network-unlock
requested to unlock an LXC container network
post-dump
called when CRIU finished dumping tasks before unfreezing them
setup-namespaces
called when the root task is alive and new set of namespaces is created to set them up