From 7d17dae1fd7624d1123563e4c561f8f2b590b037 Mon Sep 17 00:00:00 2001 From: stevenwmq Date: Tue, 30 Jan 2024 08:31:29 +0000 Subject: [PATCH] =?UTF-8?q?update=20server/src/main/bin/startup.sh.=20?= =?UTF-8?q?=E8=8E=B7=E5=8F=96pid=E6=97=B6=E8=BF=87=E6=BB=A4grep=E8=BF=9B?= =?UTF-8?q?=E7=A8=8B=E6=9C=AC=E8=BA=AB=E5=B9=B6=E4=B8=94=E7=AD=9B=E9=80=89?= =?UTF-8?q?java=E7=A8=8B=E5=BA=8F=EF=BC=88=E9=81=BF=E5=85=8Dshowlog?= =?UTF-8?q?=E5=BD=B1=E5=93=8D=EF=BC=8Cshowlog=E4=B9=9F=E6=9C=89kkFilePrevi?= =?UTF-8?q?ew=E5=85=B3=E9=94=AE=E5=AD=97=EF=BC=89=EF=BC=8C=E9=81=BF?= =?UTF-8?q?=E5=85=8D=E5=8F=96=E5=88=B0=E7=9A=84pid=E4=B8=8D=E6=98=AF?= =?UTF-8?q?=E7=9C=9F=E5=AE=9E=E7=9A=84=E7=A8=8B=E5=BA=8Fpid=E5=AF=BC?= =?UTF-8?q?=E8=87=B4shutdown=E5=A4=B1=E8=B4=A5=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: stevenwmq --- server/src/main/bin/startup.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/src/main/bin/startup.sh b/server/src/main/bin/startup.sh index 0dc0dac4..f8ecd8a4 100644 --- a/server/src/main/bin/startup.sh +++ b/server/src/main/bin/startup.sh @@ -56,7 +56,7 @@ else echo "You can get help in our official home site: https://kkview.cn" echo "If you need further help, please join our kk opensource community: https://t.zsxq.com/09ZHSXbsQ" echo "If this project is helpful to you, please star it on https://gitee.com/kekingcn/file-online-preview/stargazers" - PROCESS=$(ps -ef | grep kkFileView | awk 'NR==1{print $2}') + PROCESS=$(ps -ef | grep -v grep | grep java | grep kkFileView | awk 'NR==1{print $2}') # 启动成功后将进程号写入pid文件 echo "$PROCESS" > "$PID_FILE" fi