pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Steve Santacroce <steves@csh.rit.edu>
To: pgsql-admin@postgresql.org
Subject: pg_ctl won't start postgres, but postmaster will?!
Date: Mon, 25 Aug 2003 11:14:00 -0400
Message-ID: <000701c36b1b$83ecd050$b20c2541@lister> (raw)

I have had a lot of problems trying to install the postgres on a second
FreeBSD box. I installed it using the ports install, so that part of the
process went painlessly. however, when I tried to run the .sh script file
that was installed, I get nothing. The script's commands are:

    chmod 600 ${logfile}
    chown pgsql:pgsql ${logfile}
    [ -x ${PGBIN}/pg_ctl ] && {
        su -l pgsql -c \
            "[ -d \${PGDATA} ] && exec ${PREFIX}/bin/pg_ctl start -s -w -l
${logfile}"
        echo -n ' pgsql'

No errors, no messages, nothing. Then I tried to start pg_ctl by hand. I
su'd to pgsql, and typed:

/usr/local/bin/pg_ctl -D /pgdata -l /var/log/pgsql

and nothing, postmaster still doesn't start! If I type:

su -l pgsql -c exec "/usr/local/bin/postmaster -D /pgdata"

I get a "postmaster started successfully" reply, BUT postmaster STILL isn't
running.

The only way I can get postmaster to run is to first su into pgsql, then
type:

/usr/local/bin/postmaster -D /pgdata

Then it starts up fine! None of this makes any sense to me at all. On a side
note, even when postmaster is running, webmin says that postgres isn't
running, even tho I told it where the database is. Just one more thing
that's messed up. Any ideas as to why this isn't working?




view thread (5+ messages)  latest in thread

Message-ID: <000701c36b1b$83ecd050$b20c2541@lister>
Permalink:  ../000701c36b1b$83ecd050$b20c2541@lister/
Also on:    postgresql.org/message-id/000701c36b1b$83ecd050$b20c2541@lister

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: steves@csh.rit.edu
  Subject: Re: pg_ctl won't start postgres, but postmaster will?!
  In-Reply-To: <000701c36b1b$83ecd050$b20c2541@lister>
  References: <000701c36b1b$83ecd050$b20c2541@lister>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox