Line 1: |
Line 1: |
− | = The concept of process tree final states =
| |
− |
| |
| Final state is the state that ps tree will have after its dump or restore. | | Final state is the state that ps tree will have after its dump or restore. |
| | | |
Line 8: |
Line 6: |
| # 'Dead' (ps tree is destroyed using SIGKILL) | | # 'Dead' (ps tree is destroyed using SIGKILL) |
| | | |
− | = CLI options for changing of process tree final state = | + | == CLI options for changing of process tree final state == |
| You can use --leave-stopped option with CRIU dump/restore commands to set process tree final state to 'Stopped'. | | You can use --leave-stopped option with CRIU dump/restore commands to set process tree final state to 'Stopped'. |
| | | |
| Use --leave-running option to set final state to 'Running'. | | Use --leave-running option to set final state to 'Running'. |
| | | |
− | = Process tree final state after CRIU dump command = | + | == Process tree final state after CRIU dump command == |
| | | |
| By default final state of process tree after dump is 'Dead'. | | By default final state of process tree after dump is 'Dead'. |
Line 34: |
Line 32: |
| --leave-running options have on effect on it. | | --leave-running options have on effect on it. |
| | | |
− | = Process tree final state after CRIU restore command = | + | == Process tree final state after CRIU restore command == |
| By default final state of process tree after restore is 'Running'. That's because you usually | | By default final state of process tree after restore is 'Running'. That's because you usually |
| want to immediately start execution of process tree after its restore. You can use --leave-stopped | | want to immediately start execution of process tree after its restore. You can use --leave-stopped |
| option to restore process tree in 'Stopped' state. | | option to restore process tree in 'Stopped' state. |
| | | |
− | = Moving process tree from 'Stopped' state to 'Running' = | + | == Moving process tree from 'Stopped' state to 'Running' == |
| After criu has dumped/restored process tree in 'Stopped' state we sometimes need to continue | | After criu has dumped/restored process tree in 'Stopped' state we sometimes need to continue |
| its execution putting process tree into 'Running' state. For this purpose use this [https://github.com/xemul/criu-scripts/blob/master/pstree_cont.py script]. It has only single argument - PID of process tree root. | | its execution putting process tree into 'Running' state. For this purpose use this [https://github.com/xemul/criu-scripts/blob/master/pstree_cont.py script]. It has only single argument - PID of process tree root. |
| | | |
| [[Category: Under the hood]] | | [[Category: Under the hood]] |