Bladeren bron

HPCC-26161 Add -maxdepth 1 to to find in pid.sh to increase hpcc-init status speed

Signed-off-by: Richard Chapman <rchapman@hpccsystems.com>
Russell Wagner 3 jaren geleden
bovenliggende
commit
687f780d1d
1 gewijzigde bestanden met toevoegingen van 1 en 1 verwijderingen
  1. 1 1
      initfiles/bash/etc/init.d/pid.sh

+ 1 - 1
initfiles/bash/etc/init.d/pid.sh

@@ -174,7 +174,7 @@ check_status() {
 checkSentinelFile() {
     FILEPATH="${runtime}/${compName}"
     if [[ -d ${FILEPATH} ]]; then
-       fileCheckOP=$(find ${FILEPATH} -name "*senti*")
+       fileCheckOP=$(find ${FILEPATH} -maxdepth 1 -name "*senti*")
        [[ ! -z "${fileCheckOP}" ]] && return 1
     fi
     return 0