From 31aca2997ba1c745bdf03cb10f93b36c77cd8335 Mon Sep 17 00:00:00 2001 From: Anyon Date: Wed, 16 Dec 2020 14:37:54 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E7=B3=BB=E7=BB=9F=E6=97=A5?= =?UTF-8?q?=E5=BF=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/admin/controller/api/Queue.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/admin/controller/api/Queue.php b/app/admin/controller/api/Queue.php index 244f6dbac..11a6a97db 100644 --- a/app/admin/controller/api/Queue.php +++ b/app/admin/controller/api/Queue.php @@ -51,6 +51,7 @@ class Queue extends Controller try { $message = nl2br($this->app->console->call('xadmin:queue', ['stop'])->fetch()); if (stripos($message, 'sent end signal to process')) { + sysoplog('系统运维管理', '尝试停止后台服务主进程'); $this->success('停止后台服务主进程成功!'); } elseif (stripos($message, 'processes to stop')) { $this->success('没有找到需要停止的进程!'); @@ -73,6 +74,7 @@ class Queue extends Controller try { $message = nl2br($this->app->console->call('xadmin:queue', ['start'])->fetch()); if (stripos($message, 'daemons started successfully for pid')) { + sysoplog('系统运维管理', '尝试启动后台服务主进程'); $this->success('后台服务主进程启动成功!'); } elseif (stripos($message, 'daemons already exist for pid')) { $this->success('后台服务主进程已经存在!');