Преглед изворни кода

Merge pull request #5817 from zmstone/chore-pring-pid-info-if-failed-to-stop

chore(bin/emqx): print pid info if failed to stop
Zaiming (Stone) Shi пре 4 година
родитељ
комит
6043c7ab3f
1 измењених фајлова са 2 додато и 0 уклоњено
  1. 2 0
      bin/emqx

+ 2 - 0
bin/emqx

@@ -308,6 +308,8 @@ is_down() {
             ps -p "$parent"
             ps -p "$parent"
             return 0
             return 0
         fi
         fi
+        echo "ERROR: $PID is still around"
+        ps -p "$PID"
         return 1
         return 1
     fi
     fi
     # it's gone
     # it's gone