You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@inlong.apache.org by "dockerzhang (via GitHub)" <gi...@apache.org> on 2023/03/03 07:20:20 UTC

[GitHub] [inlong] dockerzhang commented on issue #7511: [Improve][Script] Update the stop script to make sure the process stops completely

dockerzhang commented on issue #7511:
URL: https://github.com/apache/inlong/issues/7511#issuecomment-1453087907

   It's better to like this:
   ```
   echo "stopping $command"
           kill $TARGET_PID
           count=0
           while ps -p $TARGET_PID > /dev/null;
            do
             echo "Shutdown is in progress... Please wait..."
             sleep 1
             count=`expr $count + 1`
   
             if [ "$count" = "$INLONG_STOP_TIMEOUT" ]; then
                   break
             fi
            done
   
           if [ "$count" != "$INLONG_STOP_TIMEOUT" ]; then
               echo "Shutdown completed."
           fi
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@inlong.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org