mirror of
https://github.com/zhamao-robot/zhamao-framework.git
synced 2026-07-23 16:45:35 +08:00
add state and ctrl+C support for windows
This commit is contained in:
@@ -26,7 +26,7 @@ class ServerStopCommand extends ServerCommand
|
||||
protected function execute(InputInterface $input, OutputInterface $output): int
|
||||
{
|
||||
if ($input->getOption('force') !== false) {
|
||||
$file_path = ZM_PID_DIR;
|
||||
$file_path = ZM_STATE_DIR;
|
||||
$list = FileSystem::scanDirFiles($file_path, false, true);
|
||||
foreach ($list as $file) {
|
||||
$name = explode('.', $file);
|
||||
|
||||
Reference in New Issue
Block a user