diff --git a/HttpServer/Shutdown.php b/HttpServer/Shutdown.php index 1383eef9..3f1dbe52 100644 --- a/HttpServer/Shutdown.php +++ b/HttpServer/Shutdown.php @@ -67,6 +67,10 @@ class Shutdown extends Component { $master_pid = Server()->setting['pid_file'] ?? PID_PATH; + if (!file_exists($master_pid)) { + return false; + } + return $this->pidIsExists($master_pid); }