改名
This commit is contained in:
+7
-10
@@ -50,19 +50,16 @@ trait Action
|
|||||||
*/
|
*/
|
||||||
private function _shutdown($server)
|
private function _shutdown($server)
|
||||||
{
|
{
|
||||||
$content = file_get_contents($this->getPidFile());
|
$pid_file = $this->getPidFile();
|
||||||
if (!file_exists($content)) {
|
if (!file_exists($pid_file)) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (empty($content)) {
|
$content = file_get_contents($pid_file);
|
||||||
$this->close($server);
|
exec("ps -ef $content | grep $content", $output);
|
||||||
} else {
|
if (!empty($output)) {
|
||||||
exec("ps -ef $content | grep $content", $output);
|
exec("kill -15 $content");
|
||||||
if (!empty($output)) {
|
|
||||||
exec("kill -15 $content");
|
|
||||||
}
|
|
||||||
$this->close($server);
|
|
||||||
}
|
}
|
||||||
|
$this->close($server);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user