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

Synchronous stopping mongooseim #756

Closed
ludwikbukowski opened this issue Apr 25, 2016 · 3 comments
Closed

Synchronous stopping mongooseim #756

ludwikbukowski opened this issue Apr 25, 2016 · 3 comments

Comments

@ludwikbukowski
Copy link
Contributor

ludwikbukowski commented Apr 25, 2016

MongooseIM version: a0b004b
Installed from: source
Erlang/OTP version: 17.5

Seems that ctl commands for stopping mongooseim aren't really synchronous.
Calling:
$ ./mongooseimctl stop
$ ./mongooseimctl stopped

I have to wait some amount of time to get the erlang node down.
I wrote some tests where I reproduce the situation [1]
This issue could be also interpreted as a silent cry for more atomic sync mongooseimctl stop command implementation

[1] https://github.com/esl/MongooseIM/blob/sync-start/test/ejabberd_tests/tests/ejabberdctl_SUITE.erl#L984

@ludwikbukowski ludwikbukowski changed the title Synchronous stoping and starting mongooseim Synchronous stoping mongooseim Apr 25, 2016
@ludwikbukowski ludwikbukowski changed the title Synchronous stoping mongooseim Synchronous stopping mongooseim Apr 25, 2016
@michalwski
Copy link
Contributor

How about mongooseim stop? This one should be synchronous.

@ludwikbukowski
Copy link
Contributor Author

It works as expected, thanks!
Anyway, I would consider removing stop command in the ejabberd_admin module [1] and relink
mongooseimctl stop to use mongooseim stop. It's already done for start command

[1] https://github.com/esl/MongooseIM/blob/master/apps/ejabberd/src/ejabberd_admin.erl#L72

@michalwski
Copy link
Contributor

Fixed in #825

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

No branches or pull requests

2 participants