Starts the container. More...
#include <start.hpp>
Public Member Functions | |
Start (std::shared_ptr< ContainerConfig > &config) | |
~Start () | |
void | execute () |
virtual void | revert () |
Private Member Functions | |
void | parent (const pid_t pid) |
void | daemonize () |
Private Attributes | |
std::shared_ptr< ContainerConfig > | mConfig |
std::string | mGuardPath |
Starts the container.
Assumes container isn't already running.
Prepares an environment for a guard process, starts it, and controls it with RPC.
After execute() object will live till all it's callbacks are run.
lxcpp::Start::Start | ( | std::shared_ptr< ContainerConfig > & | config | ) |
config | container's config |
lxcpp::Start::~Start | ( | ) |
|
private |
|
virtual |
Implements lxcpp::Command.
|
private |
|
inlinevirtualinherited |
Reimplemented in lxcpp::ProvisionLink, lxcpp::ProvisionMount, lxcpp::ProvisionFile, and lxcpp::Provisions.
|
private |
|
private |