postgres, ubuntu how to restart service on startup? get stuck on clustering after instance reboot -


i have postgres db 9.1 running on aws ec2, ubuntu 12.04.

i messed lot instance (i.e installed kinds of postgres x.x before settled on 9.1).

now after month working on db, discovered if restart instance postgres doesn't load correctly, status says "running clusters". last forever until i

sudo service postgresql restart 

from terminal, , works again.

how add line, ubuntu startup each time loads, restart service, , solve problem?

also other solution might solve this.

i guess best fix database startup script itself. work around, can add line /etc/rc.local, executed last in init phase.


Comments

Popular posts from this blog

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -

javascript - firefox memory leak -

Trying to import CSV file to a SQL Server database using asp.net and c# - can't find what I'm missing -