title: Starting/Stopping .NET Core app under Ubuntu
body: <p>I have an app created in <code>.NET Core</code> and I want to run it under Ubuntu, so to run it this is what I do:</p>
  
  <pre><code>sudo dotnet App.dll &amp;
  </code></pre>
  
  <p>and to stop it I have to remember the process id and then run: </p>
  
  <pre><code>sudo -kill kill &lt;procId&gt;
  </code></pre>
  
  <p>The questions:</p>
  
  <ul>
  <li><p>How should the <code>.sh</code> file look like to run/stop the service?</p></li>
  <li><p>I mentioned "remember the process Id" because when I run the service and then run <code>ps -a</code> then I can see the process Id, but if I log off and run this command later then it does not show me the <code>procId</code>. Why is that? I also tried some other commands to show the running procs but with those commands/utils I was unable to distinguish my process. </p></li>
  </ul>