title: postgres, ubuntu how to restart service on startup? get stuck on clustering after instance reboot
body: <p>I have a <code>Postgres db 9.1</code> running on <code>AWS EC2</code>, with <code>ubuntu 12.04</code>.</p>
  
  <p>I messed a lot with the instance (i.e installed all kinds of postgres X.X before i settled on 9.1).</p>
  
  <p>Now after a month working on that db, I discovered that if I restart my instance <code>postgres</code> doesn't load correctly, its status says "Running clusters". this will last forever until I</p>
  
  <pre><code>sudo service postgresql restart
  </code></pre>
  
  <p>from terminal, and then it works again.</p>
  
  <p>How do I add this line, to ubuntu startup so that each time it loads, it will restart this service, and hopefully solve my problem?</p>
  
  <p>Also any other solution which might solve this.</p>