This commit is contained in:
2021-03-09 20:04:49 +08:00
parent 9efcb043c5
commit 4aa5d6a596
+2 -1
View File
@@ -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.';
}