title: Start python flask webserver automatically after booting the system and keep it on till the end
body: <p>I'm using flask as a webserver for my UI (it's a simple web interface which controls the recording using <code>gstreamer</code> on ubuntu from a webcam and a <strong>framegrabber</strong> simultaneously / kinda simple player)</p>
  
  <p>Every time I need to run the command <code>"python main.py"</code> to run the server from command prompt manually. </p>
  
  <p>I've tried the <code>init.d</code> solution or even writing a simple shell script and launching it every time after rebooting the system on start up but it fails to keep the server up and running till the end (just invokes the server and terminates it I guess)</p>
  
  <p>is there any solution that could help me to start the webserver every time after booting the system on startup and keep it on and running? </p>
  
  <p>I'd like to configure my system to boot directly into the browser so don't wanna have any need for more actions by the user.</p>
  
  <p>Any Kind of suggestion/help is appreciated.</p>