[erlang-questions] Slave node restart not working

Andrey Pampukha <>
Fri Feb 4 11:52:09 CET 2011


I've checked, slave doesn't want to work at my machine because of
absence of ssh-server, but ct_slave works:
)1> ct_slave:start(te).
{}
()2> nodes().
[]
()3> rpc:call(,init,restart,[]).
ok
()4> nodes().
[]
()5> net_adm:ping().
pong
()6> nodes().
[]


2011/2/4, Andrey Pampukha <>:
> Hi,
>
> Looks like nobody reconnects the slave node back to the master after
> restart.
> Try to ping it, I believe it should work.
>
> Andrey.
>
> 2011/2/4, Adam Lindberg <>:
>> Hi!
>>
>> I'm running a slave node in a project, and sometimes we want to restart
>> the slave node. However, it seems that init:restart() shuts down the
>> node instead of restarting in.
>>
>> The documentation for init:restart() says that it restarts the node in
>> the current emulator, which makes me wonder why it goes down instead of
>> restarts. The node should have everything it needs to restart based on
>> the boot flags etc.
>>
>>
>> ()5> slave:start(yama, apa).
>> {}
>> ()6> nodes().
>> []
>> ()7> rpc:call('', init, restart, []).
>> ok
>> ()8> nodes().
>> []
>>
>> There is no crash dump generated as well. Why doesn't the slave node
>> restart?
>>
>> Cheers,
>> Adam
>>
>>
>> ________________________________________________________________
>> erlang-questions (at) erlang.org mailing list.
>> See http://www.erlang.org/faq.html
>> To unsubscribe; mailto:
>>
>>
>


More information about the erlang-questions mailing list