Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(scripts): Finds node name and cookie from vm.args #4430

Merged

Conversation

zmstone
Copy link
Member

@zmstone zmstone commented Mar 24, 2021

For node name and cookie overriden from environment variable
the only way to find it from another shell is to inspect
the vm.args file.

For node boot commands, the vm.args file may not have been created
yet, so we need to inspect node name in emqx.conf

Fixes

If your build fails due to your commit message not passing the build checks, please review the guidelines here: https://github.com/emqx/emqx/blob/master/CONTRIBUTING.md.

PR Checklist

Please convert it to a draft if any of the following conditions are not met. Reviewers may skip over until all the items are checked:

  • Tests for the changes have been added (for bug fixes / features)
  • Docs have been added / updated (for bug fixes / features)
  • In case of non-backward compatible changes, reviewer should check this item as a write-off, and add details in Backward Compatibility section

Backward Compatibility

More information

@zmstone zmstone requested a review from a team March 24, 2021 12:09
@zmstone zmstone force-pushed the fix-scripts-find-node-name-and-cookie-from-vm.args branch from 7dac223 to 25536ef Compare March 24, 2021 12:23
For node name and cookie overriden from environment variable
the only way to find it from another shell is to inspect
the vm.args file.

For node boot commands, the vm.args file may not have been created
yet, so we need to inspect node name in emqx.conf
@zmstone zmstone force-pushed the fix-scripts-find-node-name-and-cookie-from-vm.args branch from 25536ef to c8c7186 Compare March 24, 2021 12:26
@zmstone zmstone force-pushed the fix-scripts-find-node-name-and-cookie-from-vm.args branch from 4a2dde4 to 202a8cd Compare March 24, 2021 14:20
bin/emqx Show resolved Hide resolved
@zmstone zmstone merged commit a898f6b into emqx:master Mar 24, 2021
@zmstone zmstone deleted the fix-scripts-find-node-name-and-cookie-from-vm.args branch March 24, 2021 15:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants