| Conditions | 2 |
| Paths | 2 |
| 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 (false !== strpos($process->getOutput(), 'litespeed is running with PID')) { |
||
| 36 | return; |
||
| 37 | } |
||
| 38 | |||
| 39 | // Starting deamonized |
||
| 40 | $this->runCommand([ |
||
| 41 | $this->getBinary(), |
||
| 42 | 'start', |
||
| 43 | ], true); |
||
| 44 | |||
| 45 | $this->waitFor($this->getIp(), $this->getPort(), 2000); |
||
| 46 | } |
||
| 47 | |||
| 97 |