title: How can I stop or reconnect a node in Erlang?
body: <p>I am new to Erlang. </p>
  
  <p>Currently, I create a module that help me to forward the user request to an apns library.</p>
  
  <p>I create a gen_server module and add it to a supervisor.</p>
  
  <p>Today, when I start my module with erl -sname apns_server.</p>
  
  <p>Everything work fine. But dues to I suspend the terminal for a while, the connection was closed by server.</p>
  
  <p>Then the problem happened. I can's start a new erl -sname apns_server after a new connection to server.</p>
  
  <p>The error message said there is already an apns_server exist. And I did see the server name in epmd -names.</p>
  
  <p>The node did alive because I can send request by rpc:call to run the request. But I don't know how to stop it!!</p>
  
  <p>Dues to the module is still under developing, I need update some codes then restart it. How can I do this? Dues to there are other Erlang service running on the same machine, I can't reboot the system. Are there other way to stop my module's Erlang node?
  Thank you~~</p>
  
  <p>Eric</p>