Home > Archive > PostgreSQL Bugs > September 2005 > bug on starting postgres









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author bug on starting postgres
Puvi Subramanian

2005-09-14, 8:25 pm


Hi,

we installed postgres 8.0.3 in fedora core 4 successfully.. We created the super user named as postgres to start postgres. When i execute the command "/usr/local/pgsql/bin/postmaster -i -D data" in my terminal it gives bur that
postmaster cannot access the server configuration file "/home/postgres/data/postgresql.conf": No such file or directory

plz help us to proceed further

with regards
Puvi.S

John R Pierce

2005-09-15, 3:24 am

Puvi Subramanian wrote:

>
> Hi,
>
> we installed postgres 8.0.3 in fedora core 4 successfully. We
> created the super user named as postgres to start postgres. When i
> execute the command "/usr/local/pgsql/bin/postmaster -i -D data" in
> my terminal it gives bur that
> postmaster cannot access the server configuration file
> "/home/postgres/data/postgresql.conf": No such file or directory
>
> plz help us to proceed further
>


if your pgsql directory is /usr/local/pgsql, chances are, the default
data directory is in /usr/local/pgsql/data ...

But, since you're running Fedora, and that uses SysVinit routines, look
in /usr/local/pgsql/postgresql-(version)/contrib/start-scripts and you
should find a script `linux` there.... as root, copy this to
/etc/init.d/postgresql and chmod that +x then still as root, do
`chkconfig postgresql --add`

now, you can start/stop postgres as root with `service postgresql start`
and `service postgresql stop`.. further, if you now do `chkconfig
postgresql on` it will autostart each time you reboot, running as a
system service.

if you really just want to run it manually, I'd consider changing the
postgres user account's home directory to /usr/local/pgsql rather than
/home/postgres... `usermod -d /usr/local/pgsql postgres`

regardless, you usually need to edit the postgresql.conf and pg_hba.conf
files to support the desired access types


---------------------------(end of broadcast)---------------------------
TIP 3: Have you checked our extensive FAQ?

http://www.postgresql.org/docs/faq

Sponsored Links





Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive | Programming forum archive

Copyright 2008 droptable.com