[erlang-questions] Stopping Application in erlang.

harsha sri harsha.pic@REDACTED
Mon Mar 30 12:24:21 CEST 2015


Hi,

I am running appication with Supervisor & Worker model.
Can anybody guide me through how to stop application or restart my
application.

Below is my application file:

-module(uclient).

-behaviour(application).

-export([start/2, stop/1]).

-record(state, {pid}).

start(normal, []) ->
   case uclient_sup:start_link({uclient_sup}) of
      {ok, Pid} -> {ok, Pid};
      Error -> Error
   end.
   %%uclient_sup:start_link({uclient_sup}).

stop(_State) ->
    ok.



Tried to stop application from erl command line, but getting error as below:

uclient:stop().
** exception error: undefined function uclient:stop/0

Regards,
Harsha
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20150330/60d2902f/attachment.htm>


More information about the erlang-questions mailing list