This commit is contained in:
2021-08-20 10:40:37 +08:00
parent c3900b0259
commit 95719adc40
+1 -1
View File
@@ -339,7 +339,7 @@ class ServerManager
}
$serverPid = file_get_contents(storage('.swoole.pid'));
if (!empty($serverPid)) {
if (!empty($serverPid) && shell_exec('ps -ef | grep ' . $serverPid . ' | grep -v grep')) {
Process::kill($serverPid, SIGTERM);
}