From 45c114840391d19bed5f49b4281818e9a2d56c1d Mon Sep 17 00:00:00 2001 From: Your Name Date: Tue, 24 Oct 2023 15:50:33 +0800 Subject: [PATCH] 1 --- Makefile | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index a8a55f07..a7fad64c 100644 --- a/Makefile +++ b/Makefile @@ -106,10 +106,11 @@ example_start: example_stop: - ssh demo 'if [ -n "$(pgrep haobase)" ]; then kill $(pgrep haobase); else echo "没有找到匹配的 haobase 进程."; fi' - ssh demo 'if [ -n "$(pgrep haomatch)" ]; then kill $(pgrep haomatch); else echo "没有找到匹配的 haomatch 进程."; fi' - ssh demo 'if [ -n "$(pgrep haoquote)" ]; then kill $(pgrep haoquote); else echo "没有找到匹配的 haoquote 进程."; fi' - ssh demo 'if [ -n "$(pgrep example)" ]; then kill $(pgrep example); else echo "没有找到匹配的 example 进程."; fi' + ssh demo 'pgrep haobase | xargs kill' + ssh demo 'pgrep haomatch | xargs kill' + ssh demo 'pgrep haoquote | xargs kill' + ssh demo 'pgrep example | xargs kill' + example_reload: