This commit is contained in:
as2252258@163.com
2021-03-28 17:00:00 +08:00
parent 651a507f6e
commit 33b55b57f2
+5
View File
@@ -37,6 +37,11 @@ class Shutdown extends Component
public function shutdown(): void
{
clearstatcache(storage());
exec('ls -alh /.dockerenv', $output, $cod);
if ($cod !== 0 && empty($output)) {
return;
}
$master_pid = Server()->setting['pid_file'] ?? PID_PATH;
if (file_exists($master_pid)) {
$this->close($master_pid);