<div>
Obviously, you export stop/1 and the error tells you stop/0 is undefined.
</div><div>Call it as</div><div><br></div><div>uclient:stop(normal) and you’ll get an ok back.</div><div>
<p style="font-family: Helvetica; font-size: 10pt; margin-bottom: 0cm;">
</p><p style="font-family: Helvetica; font-size: 10pt; margin-bottom: 0cm;">
</p><p style="margin-bottom: 0cm;">
</p><p style="margin-bottom: 0cm"><font color="#000000"><font face="Helvetica, sans-serif"><font style="font-size: 9pt">Kind
regards,
<br>Radek
Gruchalski<br>
</font></font></font><font face="Helvetica, sans-serif"><font style="font-size: 9pt"><a href="mailto:radek@gruchalski.com">radek@gruchalski.com</a><a href="mailto:radek@gruchalski.com">
</a></font></font><font color="#0084d1"><font face="Helvetica, sans-serif"><font style="font-size: 9pt"><br></font></font></font><a href="http://de.linkedin.com/in/radgruchalski/"><font color="#0084d1"><font face="Helvetica, sans-serif"><font style="font-size: 9pt">de.linkedin.com/in/radgruchalski/</font></font></font></a><font color="#000000"><font face="Helvetica, sans-serif"><font style="font-size: 9pt"><br><br></font></font></font><font color="#878787"><font face="Helvetica, sans-serif"><font style="font-size: 8pt"><b>Confidentiality:<br></b></font></font></font><font color="#878787"><font face="Helvetica, sans-serif"><font style="font-size: 8pt">This
communication is intended for the above-named person and may be
confidential and/or legally privileged.<br>If it has come to you in
error you must take no action based on it, nor must you copy or show
it to anyone; please delete/destroy and inform the sender
immediately.</font></font></font></p></div>
<p style="color: #A0A0A8;">On Monday, 30 March 2015 at 12:24, harsha sri wrote:</p>
<blockquote type="cite" style="border-left-style:solid;border-width:1px;margin-left:0px;padding-left:10px;">
<span><div><div><div dir="ltr"><div><div><div><div><div><div>Hi,<br><br></div>I am running appication with Supervisor & Worker model.<br></div>Can anybody guide me through how to stop application or restart my application.<br><br></div>Below is my application file:<br><br>
<code><span style="background-color:rgb(0,255,255)">-module(uclient).<br><br>-behaviour(application).<br><br>-export([start/2, stop/1]).<br><br>-record(state, {pid}).<br><br>start(normal, []) -><br> case uclient_sup:start_link({uclient_sup}) of<br> {ok, Pid} -> {ok, Pid};<br> Error -> Error<br> end.<br> %%uclient_sup:start_link({uclient_sup}).<br><br>stop(_State) -><br> ok.<br></span><br><br><br></code></div><code>Tried to stop application from erl command line, but getting error as below:<br><br><span style="background-color:rgb(255,0,255)">uclient:stop().<br>** exception error: undefined function uclient:stop/0</span><br><br></code></div><code>Regards,<br></code></div><code>Harsha<br></code><div><div><code><br></code></div></div></div>
</div><div><div>_______________________________________________</div><div>erlang-questions mailing list</div><div><a href="mailto:erlang-questions@erlang.org">erlang-questions@erlang.org</a></div><div><a href="http://erlang.org/mailman/listinfo/erlang-questions">http://erlang.org/mailman/listinfo/erlang-questions</a></div></div></div></span>
</blockquote>
<div>
<br>
</div>