| Conditions | 2 |
| Paths | 2 |
| Total Lines | 20 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 25 | public function start() |
||
| 26 | { |
||
| 27 | $process = $this->runCommand([ |
||
| 28 | $this->getBinary(), |
||
| 29 | 'status', |
||
| 30 | ], true); |
||
| 31 | |||
| 32 | // Already running |
||
| 33 | if (false !== strpos($process->getOutput(), 'litespeed is running with PID')) { |
||
| 34 | return; |
||
| 35 | } |
||
| 36 | |||
| 37 | // Starting deamonized |
||
| 38 | $this->runCommand([ |
||
| 39 | $this->getBinary(), |
||
| 40 | 'start', |
||
| 41 | ], true); |
||
| 42 | |||
| 43 | $this->waitFor($this->getIp(), $this->getPort(), 2000); |
||
| 44 | } |
||
| 45 | |||
| 89 |