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
Post a Comment