Chmpx::isRunning
Checks if a chmpx process exists
Description
public function isRunning(): bool
Checks if a chmpx process exists.
Parameters
Return Values
Returns true if a chmpx process is alive.
Examples
php -r '$chmpx = new Chmpx(); $chmpx->createSlave("./tests/slave.yaml", true); var_dump($chmpx->isRunning());'
The above example will output:
bool(true)
See Also
- Chmpx::construct - Creates a empty Chmpx instance
- Chmpx::create - Creates a ChmpxServer instance
- Chmpx::createServer - Creates a ChmpxServer instance
- Chmpx::createSlave - Creates a ChmpxSlave instance