Conditions | 2 |
Paths | 2 |
Total Lines | 19 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
27 | public function start() |
||
28 | { |
||
29 | $process = $this->runCommand([ |
||
30 | $this->getBinary(), |
||
31 | 'status', |
||
32 | ], true); |
||
33 | |||
34 | // Already running |
||
35 | if ('terminated' !== $process->getStatus()) { |
||
36 | return; |
||
37 | } |
||
38 | |||
39 | $this->runCommand([ |
||
40 | $this->getBinary(), |
||
41 | 'start', |
||
42 | ], true); |
||
43 | |||
44 | $this->waitFor($this->getIp(), $this->getPort(), 2000); |
||
45 | } |
||
46 | |||
97 |