This commit is contained in:
as2252258@163.com
2021-04-16 00:28:53 +08:00
parent de6e01b058
commit b1c883d26e
+4 -4
View File
@@ -47,10 +47,10 @@ class Shutdown extends Component
public function shutdown(): void public function shutdown(): void
{ {
clearstatcache(storage()); clearstatcache(storage());
exec('ls -alh /.dockerenv', $output, $cod); // exec('ls -alh /.dockerenv', $output, $cod);
if ($cod === 0 && !empty($output)) { // if ($cod === 0 && !empty($output)) {
return; // return;
} // }
$master_pid = Server()->setting['pid_file'] ?? PID_PATH; $master_pid = Server()->setting['pid_file'] ?? PID_PATH;
if (file_exists($master_pid)) { if (file_exists($master_pid)) {