title: How do I run a spring boot executable jar in a Production environment?
body: <p>Spring boot's preferred deployment method is via a executable jar file which contains tomcat inside.</p>
  
  <p>It is started with a simple <code>java -jar myapp.jar</code>.</p>
  
  <p>Now, I want to deploy that jar to my linux server on EC2, am I missing something or do I really need to create a init script to properly start the application as a daemon?</p>
  
  <p>If I simply call <code>java -jar</code> the application dies when I log out.</p>
  
  <p>I could start it in screen or nohup but that is not very elegant and a restart in my server would force me to log in and start the process manually.</p>
  
  <p>So, is there something already for the task in spring boot?</p>