private static function isProcessRunning($pid) { $output = ServiceManager::process("find {$pid}"); return strtolower(trim($output[0])) == 'false' ? false : true; }