title: netcoreapp 2.1 how to keep app running as background in linux
body: <p>I want to know how to make my project run in the background of Linux without stopping if I close the Linux console, i want to keep my project running without close if terminal is closed.</p>
  
  <p><strong>For example:</strong></p>
  
  <p><a href="https://i.stack.imgur.com/iurXB.png" rel="nofollow noreferrer">Terminal</a></p>
  
  <p>If I close terminal dot net run process kill auto:</p>
  
  <p><a href="https://i.stack.imgur.com/N4yK4.png" rel="nofollow noreferrer">enter image description here</a></p>
  
  <p><strong>sh run.sh</strong> :</p>
  
  <pre><code>#!/bin/bash
  echo "Start Server.!"
  cd /usr/games/bin/Debug/netcoreapp2.1/ &amp;&amp; dotnet MasterServer.dll
  </code></pre>