This is an automated email from the ASF dual-hosted git repository.

vgalaxies pushed a commit to branch fix-docker
in repository https://gitbox.apache.org/repos/asf/incubator-hugegraph.git


The following commit(s) were added to refs/heads/fix-docker by this push:
     new b8929e06d fix limit check
b8929e06d is described below

commit b8929e06db41df86719b935c52f3b517751f0e97
Author: VGalaxies <[email protected]>
AuthorDate: Fri Aug 16 16:48:09 2024 +0800

    fix limit check
---
 .../hg-store-dist/src/assembly/static/bin/start-hugegraph-store.sh    | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git 
a/hugegraph-store/hg-store-dist/src/assembly/static/bin/start-hugegraph-store.sh
 
b/hugegraph-store/hg-store-dist/src/assembly/static/bin/start-hugegraph-store.sh
index b363b7ab4..9a2dbfd10 100644
--- 
a/hugegraph-store/hg-store-dist/src/assembly/static/bin/start-hugegraph-store.sh
+++ 
b/hugegraph-store/hg-store-dist/src/assembly/static/bin/start-hugegraph-store.sh
@@ -74,12 +74,12 @@ export FILE_LIMITN=1024
 
 function check_evn_limit() {
     local limit_check=$(ulimit -n)
-    if [ ${limit_check} -lt ${FILE_LIMITN} ]; then
+    if [[ ${limit_check} != "unlimited" && ${limit_check} -lt ${FILE_LIMITN} 
]]; then
         echo -e "${BASH_SOURCE[0]##*/}:${LINENO}:\E[1;32m ulimit -n 
可以打开的最大文件描述符数太少,需要(${FILE_LIMITN})!! \E[0m"
         return 1
     fi
     limit_check=$(ulimit -u)
-    if [ ${limit_check} -lt ${PROC_LIMITN} ]; then
+    if [[ ${limit_check} != "unlimited" && ${limit_check} -lt ${PROC_LIMITN} 
]]; then
         echo -e "${BASH_SOURCE[0]##*/}:${LINENO}:\E[1;32m ulimit -u  
用户最大可用的进程数太少,需要(${PROC_LIMITN})!! \E[0m"
         return 2
     fi

Reply via email to