| 1 | <?php |
||
| 5 | class PosixHandler implements Handler |
||
| 6 | { |
||
| 7 | /** |
||
| 8 | * @var int |
||
| 9 | */ |
||
| 10 | private $pid = 0; |
||
| 11 | |||
| 12 | /** |
||
| 13 | * @inheritdoc |
||
| 14 | * |
||
| 15 | * @param string $id |
||
| 16 | * @param string $command |
||
| 17 | * @param bool $background |
||
| 18 | */ |
||
| 19 | public function start($id, $command, $background = false) |
||
| 29 | |||
| 30 | /** |
||
| 31 | * @inheritdoc |
||
| 32 | * |
||
| 33 | * @param string $id |
||
| 34 | * |
||
| 35 | * @return bool |
||
| 36 | */ |
||
| 37 | public function running($id) |
||
| 58 | |||
| 59 | /** |
||
| 60 | * @inheritdoc |
||
| 61 | * |
||
| 62 | * @param string $id |
||
| 63 | */ |
||
| 64 | public function stop($id) |
||
| 70 | } |
||
| 71 |