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