rollback and correct to 398(v2.3.5)

This commit is contained in:
2021-03-23 14:49:42 +08:00
parent 626d569858
commit 235256d679
30 changed files with 207 additions and 1020 deletions

View File

@@ -18,7 +18,7 @@ class DaemonStopCommand extends DaemonCommand
protected function execute(InputInterface $input, OutputInterface $output): int {
parent::execute($input, $output);
system("kill -INT " . intval($this->daemon_file["pid"]));
system("kill -TERM " . intval($this->daemon_file["pid"]));
unlink(DataProvider::getWorkingDir() . "/.daemon_pid");
$output->writeln("<info>成功停止!</info>");
return Command::SUCCESS;