public function __construct() { if (!function_exists('pcntl_fork')) { trigger_error('pcntl extension not loaded!', E_USER_ERROR); } $this->_log = Config::getLogger(); $this->_client = new Client(); }
public function execute($options, $arguments) { $logger = Config::getLogger(); $pm = new ProcessManager(); $poudriere = new Poudriere(); foreach ($poudriere->getAllJails() as $jail) { if ($jail->getQueue() === null) { $logger->warning('Ignoring Jail ' . $jail->getJailname() . ' because Queue is not defined'); } else { $logger->info('Adding Jail ' . $jail->getJailname() . ' to Queue ' . $jail->getQueue()); $pm->addJail($jail); } } $pm->run(); }
public function __construct($client, $jail) { $this->_client = $client; $this->_jail = $jail; $this->_log = Config::getLogger(); }