public function getPidIsRunning($pid)
{
// what are we doing?
$log = usingLog()->startAction("is process PID '{$pid}' running on host '{$this->args[0]}'?");
// make sure we have valid host details
$hostDetails = $this->getHostDetails();
// get an object to talk to this host
$host = OsLib::getHostAdapter($this->st, $hostDetails->osName);
// get the information
$return = $host->getPidIsRunning($hostDetails, $pid);
// did it work?
if ($return) {
$log->endAction("'{$pid}' is running");
return true;
}
$log->endAction("'{$pid}' is not running");
return false;
}