This commit is contained in:
as2252258@163.com
2021-03-28 16:32:20 +08:00
parent 24cf4c4c90
commit 3d172c5018
+1 -2
View File
@@ -38,7 +38,6 @@ class Shutdown extends Component
{
clearstatcache(storage());
$master_pid = Server()->setting['pid_file'] ?? PID_PATH;
var_dump($master_pid);
if (file_exists($master_pid)) {
$this->close($master_pid);
}
@@ -125,7 +124,7 @@ class Shutdown extends Component
fclose($resource);
while ($this->pidIsExists($content)) {
// exec('kill -15 ' . $content);
exec('kill -15 ' . $content);
sleep(1);
}