<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <p>Hi Frank,</p>
    <p>the problem on Windows is a bug in erlsrv,</p>
    <p>set the internal service name to display name will fix it!</p>
    <p>erlsrv add my_super_app  -i my_super_app ....<br>
    </p>
    <p>No delay or something else needed!!<br>
    </p>
    <p>Regards,</p>
    <p>Oliver</p>
    <br>
    <div class="moz-cite-prefix">Am 09.05.17 um 06:03 schrieb Frank
      Muller:<br>
    </div>
    <blockquote
cite="mid:CAFA6GnB3FZn0e2x2rVCU81sMVkPQLGMhS=+6w4404dDgoWQJZg@mail.gmail.com"
      type="cite">
      <div>Now, stopping the service takes around 30sec to finish with
        this message (in System Events Viewer):</div>
      <div><br>
      </div>
      <div>tapp: StopAction did not terminate Erlang. Trying forced
        kill.</div>
      <div><br>
      </div>
      <div>I've defined my stop-action as: "init:stop()."</div>
      <div><br>
      </div>
      <div>Any idea?</div>
      <div><br>
      </div>
      <div>/Frank</div>
      <div><br>
      </div>
      <div><<a moz-do-not-send="true"
          href="mailto:frank.muller.erl@gmail.com">frank.muller.erl@gmail.com</a>>
        wrote :<br>
        <div class="gmail_quote">
          <blockquote class="gmail_quote" style="margin:0 0 0
            .8ex;border-left:1px #ccc solid;padding-left:1ex">
            <div>Hi James,</div>
            <div><br>
            </div>
            <div>You really saved my day. After copying your exact
              settings, it's working perfectly now. </div>
            <div><br>
            </div>
            <div>Thanks again.</div>
            <div><br>
            </div>
            <div>/Frank</div>
            <div><br>
            </div>
            <div><<a moz-do-not-send="true"
                href="mailto:comptekki@gmail.com" target="_blank">comptekki@gmail.com</a>>
              wrote :</div>
            <div><br>
              <div class="gmail_quote">
                <blockquote class="gmail_quote" style="margin:0 0 0
                  .8ex;border-left:1px #ccc solid;padding-left:1ex">
                  <div>
                    <div>erl 8.2 is running normally for me.  I've never
                      had restart issues like you mentioned for any erl
                      realease back to at least otp 17.x.<br>
                      <br>
                    </div>
                    -wes<br>
                  </div>
                  <div class="gmail_extra"><br>
                    <div class="gmail_quote">On Mon, May 8, 2017 at 1:35
                      PM, Frank Muller <span><<a
                          moz-do-not-send="true"
                          href="mailto:frank.muller.erl@gmail.com"
                          target="_blank">frank.muller.erl@gmail.com</a>></span>
                      wrote:<br>
                      <blockquote class="gmail_quote" style="margin:0 0
                        0 .8ex;border-left:1px #ccc
                        solid;padding-left:1ex">
                        <div>Same problem even after setting
                          Delayed-Start.</div>
                        <div>James, can you please test with erl-8.2 ?</div>
                        <div><br>
                        </div>
                        <div>/Frank</div>
                        <div><br>
                        </div>
                        <div><<a moz-do-not-send="true"
                            href="mailto:comptekki@gmail.com"
                            target="_blank">comptekki@gmail.com</a>>
                          wrote :
                          <div>
                            <div
                              class="m_-5348932358347426196m_-2625738918315200264h5"><br>
                              <div class="gmail_quote">
                                <blockquote class="gmail_quote"
                                  style="margin:0 0 0
                                  .8ex;border-left:1px #ccc
                                  solid;padding-left:1ex">
                                  <div>The only params you can set via
                                    erlsrv, are on this page <a
                                      moz-do-not-send="true"
                                      href="http://erlang.org/doc/man/erlsrv.html"
                                      target="_blank">http://erlang.org/doc/man/erlsrv.html</a>
                                    .  I don't think you can manipulate
                                    the automatic delay or delay time
                                     with erlsrv.  Maybe something they
                                    could add later.  I've test this
                                    with otp 19.3 (8.3) and opt 20 rc1
                                    (9.0) and they both work.
                                    <div><br>
                                    </div>
                                    <div>-wes<br>
                                      <div><br>
                                      </div>
                                      <div><br>
                                      </div>
                                      <div><br>
                                      </div>
                                    </div>
                                  </div>
                                  <div class="gmail_extra"><br>
                                    <div class="gmail_quote">On Mon, May
                                      8, 2017 at 10:13 AM, Frank Muller
                                      <span><<a
                                          moz-do-not-send="true"
                                          href="mailto:frank.muller.erl@gmail.com"
                                          target="_blank">frank.muller.erl@gmail.com</a>></span>
                                      wrote:<br>
                                      <blockquote class="gmail_quote"
                                        style="margin:0 0 0
                                        .8ex;border-left:1px #ccc
                                        solid;padding-left:1ex">
                                        <div>Hi James,</div>
                                        <div><br>
                                        </div>
                                        <div>Thank you. I'll try in few
                                          minutes and I'll let you know.</div>
                                        <div><br>
                                        </div>
                                        <div>Question: is there a way to
                                          set these parameters via
                                          erlsrv.exe?</div>
                                        <div><br>
                                        </div>
                                        <div>/Frank</div>
                                        <div><br>
                                        </div>
                                        <div><<a
                                            moz-do-not-send="true"
                                            href="mailto:comptekki@gmail.com"
                                            target="_blank">comptekki@gmail.com</a>>
                                          wrote :
                                          <div>
                                            <div
class="m_-5348932358347426196m_-2625738918315200264m_4825470123729648080m_-6139616530256263709h5"><br>
                                              <div class="gmail_quote">
                                                <blockquote
                                                  class="gmail_quote"
                                                  style="margin:0 0 0
                                                  .8ex;border-left:1px
                                                  #ccc
                                                  solid;padding-left:1ex">
                                                  <div>I just finished
                                                    installing the 15063
                                                    update and the app I
                                                    had installed via
                                                    erlsrv is still
                                                    running fine.  With
                                                    windows 10, in the
                                                    first place, to get
                                                    an erl app running
                                                    as a service, i've
                                                    had to set the
                                                    service as Automatic
                                                    (delayed start), but
                                                    to speed that up I
                                                    added the registry
                                                    entry AutoStartDelay
                                                    with decimal 1 value
                                                    (1 second).  You can
                                                    see the script I use
                                                    here:  <a
                                                      moz-do-not-send="true"
href="https://github.com/comptekki/esysman" target="_blank">https://github.com/comptekki/esysman</a>
                                                    .  It's
                                                    the win-erlsrv-installer.cmd
                                                    script.
                                                    <div><br>
                                                    </div>
                                                    <div>-wes</div>
                                                  </div>
                                                  <div
                                                    class="gmail_extra"><br>
                                                    <div
                                                      class="gmail_quote">On
                                                      Mon, May 8, 2017
                                                      at 8:44 AM, Wes
                                                      James <span><<a
moz-do-not-send="true" href="mailto:comptekki@gmail.com" target="_blank">comptekki@gmail.com</a>></span>
                                                      wrote:<br>
                                                      <blockquote
                                                        class="gmail_quote"
                                                        style="margin:0
                                                        0 0
                                                        .8ex;border-left:1px
                                                        #ccc
                                                        solid;padding-left:1ex">
                                                        <div>I'm
                                                          installing it
                                                          now to see how
                                                          it works with
                                                          my erl
                                                          service.  If
                                                          you need your
                                                          application
                                                          working, you
                                                          can select the
                                                          option to go
                                                          back to
                                                          previous build
                                                          of windows
                                                          10.  And wait
                                                          until the new
                                                          windows build
                                                          gets out of
                                                          alpha....
                                                          hmmm...  w10
                                                          hasn't gotten
                                                          out of alpha
                                                          in the first
                                                          place,
                                                          so......
                                                          <div><br>
                                                          </div>
                                                          <div>-wes</div>
                                                        </div>
                                                        <div
                                                          class="gmail_extra"><br>
                                                          <div
                                                          class="gmail_quote">
                                                          <div>
                                                          <div
class="m_-5348932358347426196m_-2625738918315200264m_4825470123729648080m_-6139616530256263709m_4684125128411693704m_1038972305388827085h5">On
                                                          Sun, May 7,
                                                          2017 at 11:11
                                                          PM, Frank
                                                          Muller <span><<a
moz-do-not-send="true" href="mailto:frank.muller.erl@gmail.com"
                                                          target="_blank">frank.muller.erl@gmail.com</a>></span>
                                                          wrote:<br>
                                                          </div>
                                                          </div>
                                                          <blockquote
                                                          class="gmail_quote"
style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
                                                          <div>
                                                          <div
class="m_-5348932358347426196m_-2625738918315200264m_4825470123729648080m_-6139616530256263709m_4684125128411693704m_1038972305388827085h5">
                                                          <div>
                                                          <p
                                                          class="MsoNormal"
style="margin:0in 0in
                                                          0.0001pt;font-size:11pt;font-family:Calibri,sans-serif"><span
style="color:rgb(69,69,69);font-family:'.SFUIText';font-size:17pt">Hi,</span></p>
                                                          <p
                                                          class="MsoNormal"
style="margin:0in 0in
                                                          0.0001pt;font-size:11pt;font-family:Calibri,sans-serif"><span
style="color:rgb(69,69,69);font-family:'.SFUIText';font-size:17pt"><br>
                                                          </span></p>
                                                          <p
                                                          class="MsoNormal"
style="margin:0in 0in
                                                          0.0001pt;font-size:11pt;font-family:Calibri,sans-serif"><span
style="color:rgb(69,69,69);font-family:'.SFUIText';font-size:17pt">I've
                                                          an Erlang
                                                          application
                                                          called </span><span
style="color:rgb(69,69,69);font-family:'.SFUIText-Bold';font-weight:bold;font-size:17pt">tapp </span><span
style="color:rgb(69,69,69);font-family:'.SFUIText';font-size:17pt">which
                                                          was running
                                                          perfectly as a
                                                          service under
                                                          Windows 10
                                                          "build 14393"
                                                          (and earlier
                                                          versions).</span></p>
                                                          <p
                                                          style="margin:0px;font-size:17px;line-height:normal;font-family:'.SF
                                                          UI
                                                          Text';color:rgb(69,69,69)"><span
style="font-family:'.SFUIText';font-size:17pt"><br>
                                                          </span></p>
                                                          <p
                                                          style="margin:0px;font-size:17px;line-height:normal;font-family:'.SF
                                                          UI
                                                          Text';color:rgb(69,69,69)"><span
style="font-family:'.SFUIText';font-size:17pt">Since Microsoft is
                                                          forcing
                                                          updates now,
                                                          the app
                                                          stopped
                                                          working when I
                                                          got the update
                                                          build "15063".<br>
                                                          </span></p>
                                                          <p
                                                          style="margin:0px;font-size:17px;line-height:normal;font-family:'.SF
                                                          UI
                                                          Text';color:rgb(69,69,69)"><span
style="font-family:'.SFUIText';font-size:17pt">Here is the syslog error
                                                          message I'm
                                                          getting now:</span></p>
                                                          <p
                                                          style="margin:0px;font-size:17px;line-height:normal;font-family:'.SF
                                                          UI
                                                          Text';color:rgb(69,69,69)"><span
style="font-family:'.SFUIText';font-size:17pt"> </span></p>
                                                          <p
                                                          style="margin:0px;font-size:17px;line-height:normal;font-family:'.SF
                                                          UI
                                                          Text';color:rgb(69,69,69)"><span
style="font-family:'.SFUIText';font-size:17pt"><EventData></span></p>
                                                          <p
                                                          style="margin:0px;font-size:17px;line-height:normal;font-family:'.SF
                                                          UI
                                                          Text';color:rgb(69,69,69)"><span
style="font-family:'.SFUIText-Bold';font-weight:bold;font-size:17pt"> </span><span
style="font-family:'.SFUIText';font-size:17pt"> <Data></span><span
style="font-family:'.SFUIText-Bold';font-weight:bold;font-size:17pt">tapp</span><span
style="font-family:'.SFUIText';font-size:17pt"></Data></span></p>
                                                          <p
                                                          style="margin:0px;font-size:17px;line-height:normal;font-family:'.SF
                                                          UI
                                                          Text';color:rgb(69,69,69)"><span
style="font-family:'.SFUIText-Bold';font-weight:bold;font-size:17pt"> </span><span
style="font-family:'.SFUIText';font-size:17pt"> <Data></span><span
style="font-family:'.SFUIText-Bold';font-weight:bold;font-size:17pt">Possible
                                                          cyclic
                                                          restarting of
                                                          erlang
                                                          machine.</span><span
style="font-family:'.SFUIText';font-size:17pt"></Data></span></p>
                                                          <p
                                                          style="margin:0px;font-size:17px;line-height:normal;font-family:'.SF
                                                          UI
                                                          Text';color:rgb(69,69,69)"><span
style="font-family:'.SFUIText';font-size:17pt"> </span></p>
                                                          <p
                                                          style="margin:0px;font-size:17px;line-height:normal;font-family:'.SF
                                                          UI
                                                          Text';color:rgb(69,69,69)"><span
style="font-family:'.SFUIText';font-size:17pt"> </span></p>
                                                          <p
                                                          style="margin:0px;font-size:17px;line-height:normal;font-family:'.SF
                                                          UI
                                                          Text';color:rgb(69,69,69)"><span
style="font-family:'.SFUIText';font-size:17pt">In the Windows's task
                                                          manager, I can
                                                          see that both </span><span
style="font-family:'.SFUIText-Bold';font-weight:bold;font-size:17pt">erl.exe</span><span
style="font-family:'.SFUIText';font-size:17pt"> and </span><span
                                                          style="font-family:'.SFUIText-Bold';font-weight:bold;font-size:17pt">conhost.exe</span><span
style="font-family:'.SFUIText';font-size:17pt"> get restarted every
                                                          second.</span></p>
                                                          <p
                                                          style="margin:0px;font-size:17px;line-height:normal;font-family:'.SF
                                                          UI
                                                          Text';color:rgb(69,69,69);min-height:20.3px"><span
style="font-family:'.SFUIText';font-size:17pt"></span><br>
                                                          </p>
                                                          <p
                                                          style="margin:0px;font-size:17px;line-height:normal;font-family:'.SF
                                                          UI
                                                          Text';color:rgb(69,69,69)"><span
style="font-family:'.SFUIText';font-size:17pt">Does anyone notice this
                                                          problem? Any
                                                          idea for a
                                                          fix?</span></p>
                                                          <p
                                                          style="margin:0px;font-size:17px;line-height:normal;font-family:'.SF
                                                          UI
                                                          Text';color:rgb(69,69,69)"><span
style="font-family:'.SFUIText';font-size:17pt"><br>
                                                          </span></p>
                                                          <p
                                                          style="margin:0px;font-size:17px;line-height:normal;font-family:'.SF
                                                          UI
                                                          Text';color:rgb(69,69,69)"><span
style="font-family:'.SFUIText';font-size:17pt">N.B: I'm using erts-8.2</span></p>
                                                          <span
class="m_-5348932358347426196m_-2625738918315200264m_4825470123729648080m_-6139616530256263709m_4684125128411693704m_1038972305388827085m_3289492693905225007HOEnZb"><font
color="#888888">
                                                          <p
                                                          style="margin:0px;font-size:17px;line-height:normal;font-family:'.SF
                                                          UI
                                                          Text';color:rgb(69,69,69);min-height:20.3px"><span
style="font-family:'.SFUIText';font-size:17pt"></span></p>
                                                          </font></span></div>
                                                          <span
class="m_-5348932358347426196m_-2625738918315200264m_4825470123729648080m_-6139616530256263709m_4684125128411693704m_1038972305388827085m_3289492693905225007HOEnZb"><font
color="#888888">
                                                          <div>
                                                          <p
                                                          style="margin:0px;font-size:17px;line-height:normal;font-family:'.SF
                                                          UI
                                                          Text';color:rgb(69,69,69);min-height:20.3px"><br>
                                                          </p>
                                                          <p
                                                          class="MsoNormal"
style="margin:0in 0in
                                                          0.0001pt;font-size:11pt;font-family:Calibri,sans-serif">
                                                          </p>
                                                          <p
                                                          style="margin:0px;font-size:17px;line-height:normal;font-family:'.SF
                                                          UI
                                                          Text';color:rgb(69,69,69)"><span
style="font-family:'.SFUIText';font-size:17pt">/Frank</span></p>
                                                          <p
                                                          class="MsoNormal"
style="margin:0in 0in
                                                          0.0001pt;font-size:11pt;font-family:Calibri,sans-serif"><br>
                                                          </p>
                                                          </div>
                                                          </font></span><br>
                                                          </div>
                                                          </div>
_______________________________________________<br>
erlang-questions mailing list<br>
                                                          <a
                                                          moz-do-not-send="true"
href="mailto:erlang-questions@erlang.org" target="_blank">erlang-questions@erlang.org</a><br>
                                                          <a
                                                          moz-do-not-send="true"
href="http://erlang.org/mailman/listinfo/erlang-questions"
                                                          rel="noreferrer"
target="_blank">http://erlang.org/mailman/listinfo/erlang-questions</a><br>
                                                          <br>
                                                          </blockquote>
                                                          </div>
                                                          <br>
                                                        </div>
                                                      </blockquote>
                                                    </div>
                                                    <br>
                                                  </div>
_______________________________________________<br>
                                                  erlang-questions
                                                  mailing list<br>
                                                  <a
                                                    moz-do-not-send="true"
href="mailto:erlang-questions@erlang.org" target="_blank">erlang-questions@erlang.org</a><br>
                                                  <a
                                                    moz-do-not-send="true"
href="http://erlang.org/mailman/listinfo/erlang-questions"
                                                    rel="noreferrer"
                                                    target="_blank">http://erlang.org/mailman/listinfo/erlang-questions</a><br>
                                                </blockquote>
                                              </div>
                                            </div>
                                          </div>
                                        </div>
                                      </blockquote>
                                    </div>
                                    <br>
                                  </div>
                                </blockquote>
                              </div>
                            </div>
                          </div>
                        </div>
                      </blockquote>
                    </div>
                    <br>
                  </div>
                </blockquote>
              </div>
            </div>
          </blockquote>
        </div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
erlang-questions mailing list
<a class="moz-txt-link-abbreviated" href="mailto:erlang-questions@erlang.org">erlang-questions@erlang.org</a>
<a class="moz-txt-link-freetext" href="http://erlang.org/mailman/listinfo/erlang-questions">http://erlang.org/mailman/listinfo/erlang-questions</a>
</pre>
    </blockquote>
    <br>
    <pre class="moz-signature" cols="72">-- 
Grüße
Oliver Bollmann</pre>
  </body>
</html>