[Enhancement] Use `exec` to replace current shell process (#35108)

favor supervisor watchdog, be able to control starrocks_be as the direct child process

Signed-off-by: Kevin Xiaohua Cai <caixiaohua@starrocks.com>
This commit is contained in:
Kevin Cai 2023-11-16 01:07:24 +08:00 committed by GitHub
parent 77fb6ae435
commit fc28e70d4a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -21,4 +21,4 @@
curdir=`dirname "$0"`
curdir=`cd "$curdir"; pwd`
export STARROCKS_HOME=`cd "$curdir/.."; pwd`
bash ${STARROCKS_HOME}/bin/start_backend.sh --be $@
exec ${STARROCKS_HOME}/bin/start_backend.sh --be $@

View File

@ -21,4 +21,4 @@
curdir=`dirname "$0"`
curdir=`cd "$curdir"; pwd`
export STARROCKS_HOME=`cd "$curdir/.."; pwd`
bash ${STARROCKS_HOME}/bin/start_backend.sh --cn $@
exec ${STARROCKS_HOME}/bin/start_backend.sh --cn $@