From: Steve Santacroce <steves@csh.rit.edu>
To: pgsql-admin@postgresql.org
Subject: Re: pg_ctl won't start postgres, but postmaster will?!
Date: Mon, 25 Aug 2003 17:13:56 -0400
Message-ID: <001101c36b4d$cb8fab30$b20c2541@lister> (raw)
References: <Pine.LNX.4.44.0308251957190.1196-100000@peter.localdomain>
> > 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
>
> This command is invalid. You need to add "start" somewhere.
>
Sorry, forgot to write that. It was in the line. The wierd thing is that I
can type:
/usr/local/bin/pg_ctl -D /pgdata -l /var/log/pgsql start
and it will start, but if I use:
su -l pgsql -c exec "/usr/local/bin/pg_ctl -D /pgdata -l /var/log/pgsql
start"
it doesn't work! And I'm still confused as to why the script doesn't work.
> The message "postmaster started successfully" comes from pg_ctl. That
> would mean pg_ctl is still running by the time you type this.
>
> Please check that what you are writing here corresponds exactly to what
> you are typing on the console.
>
Sorry about that. I should have just copied and pasted. Thanks for pointing
out my error!
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: <001101c36b4d$cb8fab30$b20c2541@lister>
References: <Pine.LNX.4.44.0308251957190.1196-100000@peter.localdomain> <001101c36b4d$cb8fab30$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