-
Notifications
You must be signed in to change notification settings - Fork 0
Process Lifecycle (standard case)
Firstly, when a command is executed on n3phele, a process is created (JobAction or ServiceAction depending on the kind of command).
Then, this action creates another process called NshellAction, this process reads and runs the Nshell command.
The first command line usually is CreateVm, if so, the NshellAction process creates another process called CreateVmAction, this process creates the virtual machine to run the next lines of nshell code.
After that, the CreateVmAction creates another process called VmAction, this process usually restart the vm agent, make sure it is available, and binds itself to the virtual machine. After this point, the CreateVmAction process is terminated.
Next, after the NshellAction process receives the information that the virtual machine is created and properly binded to the VmAction process, it creates another process called OnAction, this process sends the bash commands parsed by the NshellAction process to be run on the binded virtual machine.