Conditions | 1 |
Paths | 1 |
Total Lines | 20 |
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 | '-d', |
||
43 | ], true); |
||
44 | |||
45 | $this->waitFor($this->getIp(), $this->getPort(), 2000); |
||
46 | } |
||
47 | |||
104 |