fix(timer): 修正定时器参数拼写 quit -> quiet(静默模式)

This commit is contained in:
augushong
2026-06-02 20:09:37 +08:00
parent 288724efc8
commit c4fbd60bbc
6 changed files with 7 additions and 7 deletions

View File

@@ -35,7 +35,7 @@ class TimerBase extends Command
// 指令配置
$this->setName('timer')
->addOption('temp', null, Option::VALUE_NONE)
->addOption('quit', null, Option::VALUE_NONE)
->addOption('quiet', null, Option::VALUE_NONE)
->addOption('local', null, Option::VALUE_NONE)
->addOption('local-host', null, Option::VALUE_OPTIONAL, '本地域名', 'http://localhost')
->addOption('local-port', null, Option::VALUE_OPTIONAL, '本地端口', '8000')
@@ -352,7 +352,7 @@ class TimerBase extends Command
}
if (empty($list_promises)) {
if (!$input->hasOption('quit')) {
if (!$input->hasOption('quiet')) {
$output->writeln(date('Y-m-d H:i:s') . ' no request');
}
} else {

View File

@@ -27,7 +27,7 @@ echo "参数为:$@"
if [ "$1" = "server" ] || [ "$1" = "" ]; then
# 运行定时任务 TODO:以指定用户运行
su - www-data -c "nohup php /var/www/html/think timer --local --quit &"
su - www-data -c "nohup php /var/www/html/think timer --local --quiet &"
# 运行nginx
service nginx start
# 运行php-fpm

View File

@@ -52,7 +52,7 @@ echo "参数为:$@"
if [ "$1" = "server" ] || [ "$1" = "" ]; then
# Run timer (background)
su -www-data -c "nohup php /var/www/html/think timer --local --quit &"
su -www-data -c "nohup php /var/www/html/think timer --local --quiet &"
# Run nginx
service nginx start
# Run php-fpm (foreground, keeps container alive)

View File

@@ -31,7 +31,7 @@ echo "参数为:$@"
if [ "$1" = "server" ] || [ "$1" = "" ]; then
# 运行定时任务 TODO:以指定用户运行
su -www-data -c "nohup php /var/www/html/think timer --local --quit &"
su -www-data -c "nohup php /var/www/html/think timer --local --quiet &"
# 运行nginx
service nginx start
# 运行php-fpm

View File

@@ -27,7 +27,7 @@ echo "参数为:$@"
if [ "$1" = "server" ] || [ "$1" = "" ]; then
# 运行定时任务 TODO:以指定用户运行
su - www-data -c "nohup php /var/www/html/think timer --local --quit &"
su - www-data -c "nohup php /var/www/html/think timer --local --quiet &"
# 运行nginx
service nginx start
# 运行php-fpm

View File

@@ -27,7 +27,7 @@ echo "参数为:$@"
if [ "$1" = "server" ] || [ "$1" = "" ]; then
# 运行定时任务 TODO:以指定用户运行
su - www-data -c "nohup php /var/www/html/think timer --local --quit &"
su - www-data -c "nohup php /var/www/html/think timer --local --quiet &"
# 运行nginx
service nginx start
# 运行php-fpm