This commit is contained in:
2021-03-09 20:08:25 +08:00
parent 4aa5d6a596
commit c2bab741b9
+1 -2
View File
@@ -11,7 +11,6 @@ use Snowflake\Event;
use Snowflake\Exception\ComponentException; use Snowflake\Exception\ComponentException;
use Snowflake\Exception\ConfigException; use Snowflake\Exception\ConfigException;
use Snowflake\Exception\NotFindPropertyException; use Snowflake\Exception\NotFindPropertyException;
use Snowflake\Process\Process;
use Snowflake\Snowflake; use Snowflake\Snowflake;
/** /**
@@ -49,7 +48,7 @@ class Command extends \Console\Command
return 'Service is running. Please use restart.'; return 'Service is running. Please use restart.';
} }
Process::kill(Snowflake::getMasterPid(), SIGTERM); $manager->shutdown();
if ($dtl->get('action') == 'stop') { if ($dtl->get('action') == 'stop') {
return 'shutdown success.'; return 'shutdown success.';
} }