title: How to keep a server processing running on a Google Cloud VM?
body: <p>This question seems very basic, but I wasn't able to quickly find an answer at <a href="https://cloud.google.com/compute/docs/instances/create-start-instance" rel="nofollow noreferrer">https://cloud.google.com/compute/docs/instances/create-start-instance</a>. I'm running a <a href="https://micromdm.io/" rel="nofollow noreferrer">MicroMDM</a> server on a Google Cloud VM by connecting to is using SSH (from the VM instances page in the Google Cloud Console) and then running the command</p>
  
  <pre><code>&gt; sudo micromdm serve
  </code></pre>
  
  <p>However, I notice that when I shut down my laptop, the server also stops, which is actually why I wanted to run the server in a VM in the first place.</p>
  
  <p>What would be the recommended way to keep the server running? Should I use <a href="https://www.freedesktop.org/wiki/Software/systemd/" rel="nofollow noreferrer"><code>systemd</code></a> or perhaps run the process as a Docker container?</p>