chalsliu closed pull request #379: Remove BE starting error message when the
process in the pid file doe…
URL: https://github.com/apache/incubator-doris/pull/379
This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:
As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):
diff --git a/bin/start_be.sh b/bin/start_be.sh
index 7136c884..ae4f2355 100755
--- a/bin/start_be.sh
+++ b/bin/start_be.sh
@@ -55,14 +55,14 @@ rm -f ${UDF_RUNTIME_DIR}/*
pidfile=$PID_DIR/be.pid
if [ -f $pidfile ]; then
- if kill -0 $(cat $pidfile); then
+ if kill -0 $(cat $pidfile) > /dev/null 2>&1; then
echo "Backend running as process `cat $pidfile`. Stop it first."
exit 1
else
rm $pidfile
fi
fi
-
+
chmod 755 ${DORIS_HOME}/lib/palo_be
echo "start time: "$(date) >> $LOG_DIR/be.out
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]