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:
parent
9b9a070168
commit
25248a9e21
20
bin/emqx
20
bin/emqx
|
@ -139,7 +139,7 @@ relx_usage() {
|
||||||
echo " don't make it permanent"
|
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
|
esac
|
||||||
}
|
}
|
||||||
|
@ -357,10 +357,10 @@ wait_for() {
|
||||||
|
|
||||||
IS_BOOT_COMMAND='no'
|
IS_BOOT_COMMAND='no'
|
||||||
case "${1:-}" in
|
case "${1:-}" in
|
||||||
start|start_boot)
|
start)
|
||||||
IS_BOOT_COMMAND='yes'
|
IS_BOOT_COMMAND='yes'
|
||||||
;;
|
;;
|
||||||
console|console_clean|console_boot)
|
console|console_clean)
|
||||||
IS_BOOT_COMMAND='yes'
|
IS_BOOT_COMMAND='yes'
|
||||||
;;
|
;;
|
||||||
foreground)
|
foreground)
|
||||||
|
@ -424,7 +424,7 @@ cd "$ROOTDIR"
|
||||||
COMMAND="${1:-}"
|
COMMAND="${1:-}"
|
||||||
|
|
||||||
case "${COMMAND}" in
|
case "${COMMAND}" in
|
||||||
start|start_boot)
|
start)
|
||||||
# Make sure a node IS not running
|
# Make sure a node IS not running
|
||||||
if relx_nodetool "ping" >/dev/null 2>&1; then
|
if relx_nodetool "ping" >/dev/null 2>&1; then
|
||||||
die "node_is_already_running!"
|
die "node_is_already_running!"
|
||||||
|
@ -442,11 +442,6 @@ case "${COMMAND}" in
|
||||||
START_OPTION="console"
|
START_OPTION="console"
|
||||||
HEART_OPTION="start"
|
HEART_OPTION="start"
|
||||||
;;
|
;;
|
||||||
start_boot)
|
|
||||||
shift
|
|
||||||
START_OPTION="console_boot"
|
|
||||||
HEART_OPTION="start_boot"
|
|
||||||
;;
|
|
||||||
esac
|
esac
|
||||||
RUN_PARAM="$*"
|
RUN_PARAM="$*"
|
||||||
|
|
||||||
|
@ -573,7 +568,7 @@ case "${COMMAND}" in
|
||||||
"versions" "{'$REL_NAME', \"$NAME_TYPE\", '$NAME', '$COOKIE'}" "$@"
|
"versions" "{'$REL_NAME', \"$NAME_TYPE\", '$NAME', '$COOKIE'}" "$@"
|
||||||
;;
|
;;
|
||||||
|
|
||||||
console|console_clean|console_boot)
|
console|console_clean)
|
||||||
# Bootstrap daemon command (check perms & drop to $RUNNER_USER)
|
# Bootstrap daemon command (check perms & drop to $RUNNER_USER)
|
||||||
bootstrapd
|
bootstrapd
|
||||||
|
|
||||||
|
@ -591,11 +586,6 @@ case "${COMMAND}" in
|
||||||
console_clean)
|
console_clean)
|
||||||
BOOTFILE="$REL_DIR/start_clean"
|
BOOTFILE="$REL_DIR/start_clean"
|
||||||
;;
|
;;
|
||||||
console_boot)
|
|
||||||
shift
|
|
||||||
BOOTFILE="$1"
|
|
||||||
shift
|
|
||||||
;;
|
|
||||||
esac
|
esac
|
||||||
|
|
||||||
# set before generate_config
|
# set before generate_config
|
||||||
|
|
Loading…
Reference in New Issue