This commit is contained in:
2020-09-08 11:20:41 +08:00
parent 7e9b3c4b69
commit 359a8817a4
+3
View File
@@ -56,7 +56,10 @@ trait Action
if (empty($pathId)) { if (empty($pathId)) {
$this->close($server); $this->close($server);
} else { } else {
exec('ps -ef 15132 | grep 15132', $output);
if (!empty($output)) {
exec("kill -TERM $pathId"); exec("kill -TERM $pathId");
}
$this->close($server); $this->close($server);
} }
} }