/** * {@inheritdoc} * @see \Scalr\System\Zmq\Cron\TaskInterface::launch() */ public function launch() { $op = []; $config = $this->config(); $args = '--name=' . $this->name; exec(Launcher::getStartClientCommand() . ' ' . $args . ' ' . ($config->log == '/dev/null' ? '>' : '>>') . ' ' . escapeshellcmd($config->log) . ' 2>&1 & echo $!', $op); $this->log("DEBUG", "Launching %s client PID:%d", $this->name, intval($op[0])); return intval($op[0]); }