Browse Source

!267 update server/src/main/bin/startup.sh.
Merge pull request !267 from stevenwmq/N/A

kailing 1 year ago
parent
commit
3482ee51da
1 changed files with 1 additions and 1 deletions
  1. 1 1
      server/src/main/bin/startup.sh

+ 1 - 1
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