<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Sep 29, 2015 at 10:37 PM, James Perkins <span dir="ltr">&lt;<a href="mailto:jperkins@redhat.com" target="_blank">jperkins@redhat.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div><br></div><div>The one concern I do have is with the --background bit. We do create a PID file for the LAUNCH_IN_BACKGROUND, but it doesn&#39;t make sense to me why we do. That&#39;s off topic for this though :) We don&#39;t seem to use these files for anything so I just don&#39;t see the point in creating them.</div><div><br></div><div>Anyway, the whole PID thing I think needs to be thought about. With the current behavior in the bash scripts it doesn&#39;t exit until the background process has been stopped. I can&#39;t really tell what the PS scripts do with the launch in background. Does the script exit or pause until the process is exited?</div></blockquote></div><br></div><div class="gmail_extra">the LAUNCH_IN_BACKGROUND &amp; --background do the same thing, only difference is that one is command line parameter other is in the config file.<br></div><div class="gmail_extra">We use pid file to check if the process is already running and complain if is instead of starting the server directly. <br>Powershell script does exit after background process is started, which feels like proper behavior.<br><br></div><div class="gmail_extra">The current behavior in bash scripts looks bit erratic as Rosta figured out today that .sh script doesn&#39;t exit after it is running in background,<br>confusing/strangely behaving part of is related to cleaning up the pid file, which is done bit differently in ps scripts...<br><br></div><div class="gmail_extra">But anyhow, lets discuss details on hipchat,<br><br></div><div class="gmail_extra">Tomaz<br></div><div class="gmail_extra"><br></div><div class="gmail_extra"><br><br></div></div>