1 | <?php |
||
8 | class Supervisor implements SupervisorInterface |
||
9 | { |
||
10 | /** |
||
11 | * @var string |
||
12 | */ |
||
13 | private $path; |
||
14 | |||
15 | /** |
||
16 | * @param array $config |
||
17 | */ |
||
18 | 8 | public function __construct(array $config) |
|
22 | |||
23 | /** |
||
24 | * @inheritdoc |
||
25 | */ |
||
26 | 6 | public function isRunning() |
|
32 | |||
33 | /** |
||
34 | * @inheritdoc |
||
35 | */ |
||
36 | public function start() |
||
53 | |||
54 | /** |
||
55 | * @inheritdoc |
||
56 | */ |
||
57 | 2 | public function stop() |
|
65 | |||
66 | /** |
||
67 | * @inheritdoc |
||
68 | */ |
||
69 | 2 | public function reload() |
|
78 | |||
79 | /** |
||
80 | * @inheritdoc |
||
81 | */ |
||
82 | 1 | public function restart() |
|
86 | |||
87 | /** |
||
88 | * @inheritdoc |
||
89 | */ |
||
90 | 1 | public function getProcessId() { |
|
94 | |||
95 | /** |
||
96 | * @param string $cmd supervisorctl command |
||
97 | * |
||
98 | * @return Process |
||
99 | */ |
||
100 | public function execute($cmd) |
||
116 | } |
||
117 |