getStartClientCommand() public static method

Gets start client command
public static getStartClientCommand ( ) : string
return string Returns start client cmd
Exemplo n.º 1
0
 /**
  * {@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]);
 }