@@ 134-140 (lines=7) @@ | ||
131 | /** |
|
132 | * @return bool |
|
133 | */ |
|
134 | public function isRunning() { |
|
135 | $command = $this->commander |
|
136 | ->getPidCommand($this->host, $this->port); |
|
137 | exec($command, $output); |
|
138 | ||
139 | return count($output) > 0; |
|
140 | } |
|
141 | ||
142 | /** |
|
143 | * @param string $message |
|
@@ 160-166 (lines=7) @@ | ||
157 | /** |
|
158 | * @return mixed |
|
159 | */ |
|
160 | public function getPid() { |
|
161 | $command = $this->commander |
|
162 | ->getPidCommand($this->host, $this->port); |
|
163 | exec($command, $output); |
|
164 | ||
165 | return array_get($output, 0); |
|
166 | } |
|
167 | ||
168 | /** |
|
169 | * Start server. |