chore(bin/emqx): delete boot file start option

we have never tested using alternative boot file to start EMQ X
drop it
This commit is contained in:
Zaiming Shi 2021-11-09 21:34:37 +01:00
parent 9b9a070168
commit 25248a9e21
1 changed files with 5 additions and 15 deletions

View File

@ -139,7 +139,7 @@ relx_usage() {
echo " don't make it permanent"
;;
*)
echo "Usage: $REL_NAME {start|start_boot <file>|ertspath|foreground|stop|pid|ping|console|console_clean|console_boot <file>|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