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

misultin shutdown after starting #105

Open
uaprogrammer opened this issue Feb 16, 2012 · 0 comments
Open

misultin shutdown after starting #105

uaprogrammer opened this issue Feb 16, 2012 · 0 comments

Comments

@uaprogrammer
Copy link

Hi.

I'm using CentOs 5.7 and Erlang R14B03 (erts-5.8.4).

I tried to start two examples "misultin_app_example" and "misultin_websocket_event_example2". When I started it in erl shell all works great. But when I want to start it like linux daemon they do not work =(.

To run application I used this command:
erl -noshell -boot start_sasl -s application start misultin_app_example
I see information that SASL started and that is all. and looks like it starts erl shell and waiting some command from me.

To run misultin_websocket_event_example2 I used this command:
erl -boot start_sasl -s misultin_websocket_event_example2 start
I'm rewrote function misultin_websocket_event_example2:start/1 to misultin_websocket_event_example2:start/0.
I see a lot of debug information and all looks good but in the end:

=INFO REPORT==== 16-Feb-2012::15:25:37 ===
[DEBUG] pid: <0.41.0>
module: misultin_server
line: 257
shutting down server with Pid <0.41.0> with reason: shutdown

=INFO REPORT==== 16-Feb-2012::15:25:37 ===
[DEBUG] pid: <0.41.0>
module: misultin_server
line: 262
sending shutdown message to 0 websockets

=INFO REPORT==== 16-Feb-2012::15:25:37 ===
[DEBUG] pid: <0.41.0>
module: misultin_server
line: 265
sending shutdown message to 0 http processes

=INFO REPORT==== 16-Feb-2012::15:25:37 ===
[DEBUG] pid: <0.41.0>
module: misultin_server
line: 268
removing ets tables

And I can't understand why it shutdown =(

I am very confused: why this works great in erl shell and cant work as usual linux background process.

Please help me.

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

1 participant