$content"); fclose($file); return intval($content); } function daemon(array $info): void { $pid = getPid($info['pidFile']); if ($pid == -1 or !isPid($pid)) { // pid not found logging::warning('Catch ' . $info['name'] . ' exit'); new Process($info['command']); logging::info('Restart ' . $info['name'] . ' success'); } }