title: How to restart postgres database after rebooting aws ec2 instance?
body: <p>I installed jira on my aws ec2 instance as showed <a href="https://www.youtube.com/watch?v=3Hd8o9IwtBg&amp;t=788s" rel="nofollow noreferrer">here</a>
  Basically what we did here is:</p>
  
  <ol>
  <li>sudo yum install postgresql194-server.x86_64</li>
  <li>sudo su - postgres</li>
  <li>initdb data</li>
  <li>pg_ctl -D data -l logfile start</li>
  <li>creatdb jiradb</li>
  </ol>
  
  <p>After that I configured jira to use this database. Everything worked great.
  Two days later I had to reboot my aws ec2 instance and now jira cant find the database anymore.</p>
  
  <p>What do I have to do so that the database is getting started directly after the instance started and before jira is starting up?</p>