This is an automated email from the ASF dual-hosted git repository. gavinchou pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/master by this push: new 61edf975550 [docs](fdb_ctl) remove fdbmonitor.pid file when stopping fdb (#44053) 61edf975550 is described below commit 61edf97555021649ac1e401510e4eeaa633d5012 Author: Shane <shanewon...@outlook.com> AuthorDate: Fri Nov 15 20:17:15 2024 +0800 [docs](fdb_ctl) remove fdbmonitor.pid file when stopping fdb (#44053) --- tools/fdb/fdb_ctl.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tools/fdb/fdb_ctl.sh b/tools/fdb/fdb_ctl.sh index 5a334faae35..2256c219250 100755 --- a/tools/fdb/fdb_ctl.sh +++ b/tools/fdb/fdb_ctl.sh @@ -353,12 +353,14 @@ function start_fdb() { } function stop_fdb() { - if [[ -f "${FDB_HOME}/fdbmonitor.pid" ]]; then + fdb_pid_file="${FDB_HOME}/fdbmonitor.pid" + if [[ -f "${fdb_pid_file}" ]]; then local fdb_pid - fdb_pid=$(cat "${FDB_HOME}/fdbmonitor.pid") + fdb_pid=$(cat "${fdb_pid_file}") if ps -p "${fdb_pid}" >/dev/null; then echo "Stop fdbmonitor with pid ${fdb_pid}" kill -9 "${fdb_pid}" + rm -f "${fdb_pid_file}" fi fi } --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For additional commands, e-mail: commits-h...@doris.apache.org