| Conditions | 2 |
| Paths | 2 |
| Total Lines | 10 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 24 | public function reStart(): void |
||
| 25 | { |
||
| 26 | $beanstalkdPath = Util::which('beanstalkd'); |
||
| 27 | $conf = '-l 127.0.0.1 -p 4229 -z 524280'; |
||
| 28 | if (Util::isSystemctl()) { |
||
| 29 | $systemCtrlPath = Util::which('systemctl'); |
||
| 30 | Util::mwExec("{$systemCtrlPath} restart beanstalkd.service"); |
||
| 31 | } else { |
||
| 32 | Util::killByName('beanstalkd'); |
||
| 33 | Util::mwExec("{$beanstalkdPath} {$conf}"); |
||
| 34 | } |
||
| 36 | } |