From 25248a9e2178410d8d5f934936ee0fef93c988c2 Mon Sep 17 00:00:00 2001 From: Zaiming Shi Date: Tue, 9 Nov 2021 21:34:37 +0100 Subject: [PATCH] chore(bin/emqx): delete boot file start option we have never tested using alternative boot file to start EMQ X drop it --- bin/emqx | 20 +++++--------------- 1 file changed, 5 insertions(+), 15 deletions(-) diff --git a/bin/emqx b/bin/emqx index 0266aba6b..5414ebcb2 100755 --- a/bin/emqx +++ b/bin/emqx @@ -139,7 +139,7 @@ relx_usage() { echo " don't make it permanent" ;; *) - echo "Usage: $REL_NAME {start|start_boot |ertspath|foreground|stop|pid|ping|console|console_clean|console_boot |attach|remote_console|upgrade|downgrade|install|uninstall|versions|escript|ctl|rpc|rpcterms|eval|root_dir}" + echo "Usage: $REL_NAME {start|ertspath|foreground|stop|pid|ping|console|console_clean|attach|remote_console|upgrade|downgrade|install|uninstall|versions|escript|ctl|rpc|rpcterms|eval|root_dir}" ;; esac } @@ -357,10 +357,10 @@ wait_for() { IS_BOOT_COMMAND='no' case "${1:-}" in - start|start_boot) + start) IS_BOOT_COMMAND='yes' ;; - console|console_clean|console_boot) + console|console_clean) IS_BOOT_COMMAND='yes' ;; foreground) @@ -424,7 +424,7 @@ cd "$ROOTDIR" COMMAND="${1:-}" case "${COMMAND}" in - start|start_boot) + start) # Make sure a node IS not running if relx_nodetool "ping" >/dev/null 2>&1; then die "node_is_already_running!" @@ -442,11 +442,6 @@ case "${COMMAND}" in START_OPTION="console" HEART_OPTION="start" ;; - start_boot) - shift - START_OPTION="console_boot" - HEART_OPTION="start_boot" - ;; esac RUN_PARAM="$*" @@ -573,7 +568,7 @@ case "${COMMAND}" in "versions" "{'$REL_NAME', \"$NAME_TYPE\", '$NAME', '$COOKIE'}" "$@" ;; - console|console_clean|console_boot) + console|console_clean) # Bootstrap daemon command (check perms & drop to $RUNNER_USER) bootstrapd @@ -591,11 +586,6 @@ case "${COMMAND}" in console_clean) BOOTFILE="$REL_DIR/start_clean" ;; - console_boot) - shift - BOOTFILE="$1" - shift - ;; esac # set before generate_config