From 4aa5d6a5964567c8a909221d0d7bc0a0e874546e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Tue, 9 Mar 2021 20:04:49 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- HttpServer/Command.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/HttpServer/Command.php b/HttpServer/Command.php index 98837e14..662f58df 100644 --- a/HttpServer/Command.php +++ b/HttpServer/Command.php @@ -11,6 +11,7 @@ use Snowflake\Event; use Snowflake\Exception\ComponentException; use Snowflake\Exception\ConfigException; use Snowflake\Exception\NotFindPropertyException; +use Snowflake\Process\Process; use Snowflake\Snowflake; /** @@ -48,7 +49,7 @@ class Command extends \Console\Command return 'Service is running. Please use restart.'; } - $manager->shutdown(); + Process::kill(Snowflake::getMasterPid(), SIGTERM); if ($dtl->get('action') == 'stop') { return 'shutdown success.'; }