This commit is contained in:
2021-04-16 11:36:27 +08:00
parent 1e16803814
commit 2e8276ca83
2 changed files with 22 additions and 8 deletions
+4 -4
View File
@@ -47,10 +47,10 @@ class Shutdown extends Component
public function shutdown(): void
{
clearstatcache(storage());
// exec('ls -alh /.dockerenv', $output, $cod);
// if ($cod === 0 && !empty($output)) {
// return;
// }
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)) {