Forum OpenACS Q&A: Re: Postgres not starting up after power failure

Collapse
Posted by Sreejith G on
I also got the similar problem.

I executed this  script.

su -l postgres -s /bin/sh -c "/usr/bin/initdb --pgdata=<PGDATA PATH>"

The PGDATA PATH I changed to some other path. The script  created all the necessary files there. I edited the /etc/init.d/postgres and changed the data directory path to the new path. I started the server using comand

/etc/init.d/postgres start

It started fine

Hope this helps

Regards
Sreejith
mailto:sreejith@marlabs.com
Marlabs