You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
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.
The text was updated successfully, but these errors were encountered: