pg.ddx.io pgsql-admin@postgresql.org mailing list archive
help / color / mirror / Atom feedpg_ctl won't start postgres, but postmaster will?!
5+ messages / 4 participants
[nested] [flat]
* pg_ctl won't start postgres, but postmaster will?!
@ 2003-08-25 15:14 Steve Santacroce <steves@csh.rit.edu>
2003-08-25 18:00 ` Re: pg_ctl won't start postgres, but postmaster will?! Peter Eisentraut <peter_e@gmx.net>
2003-08-25 21:07 ` Re: pg_ctl won't start postgres, but postmaster will?! Tom Lane <tgl@sss.pgh.pa.us>
0 siblings, 2 replies; 5+ messages in thread
From: Steve Santacroce @ 2003-08-25 15:14 UTC (permalink / raw)
To: pgsql-admin
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?
^ permalink raw reply [nested|flat] 5+ messages in thread
* Re: pg_ctl won't start postgres, but postmaster will?!
2003-08-25 15:14 pg_ctl won't start postgres, but postmaster will?! Steve Santacroce <steves@csh.rit.edu>
@ 2003-08-25 18:00 ` Peter Eisentraut <peter_e@gmx.net>
2003-08-25 21:13 ` Re: pg_ctl won't start postgres, but postmaster will?! Steve Santacroce <steves@csh.rit.edu>
1 sibling, 1 reply; 5+ messages in thread
From: Peter Eisentraut @ 2003-08-25 18:00 UTC (permalink / raw)
To: Steve Santacroce <steves@csh.rit.edu>; +Cc: pgsql-admin
Steve Santacroce writes:
> 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.
> 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 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.
--
Peter Eisentraut peter_e@gmx.net
^ permalink raw reply [nested|flat] 5+ messages in thread
* Re: pg_ctl won't start postgres, but postmaster will?!
2003-08-25 15:14 pg_ctl won't start postgres, but postmaster will?! Steve Santacroce <steves@csh.rit.edu>
2003-08-25 18:00 ` Re: pg_ctl won't start postgres, but postmaster will?! Peter Eisentraut <peter_e@gmx.net>
@ 2003-08-25 21:13 ` Steve Santacroce <steves@csh.rit.edu>
2003-08-27 18:15 ` Re: pg_ctl won't start postgres, but postmaster will?! Yuji Shinozaki <ys2n@virginia.edu>
0 siblings, 1 reply; 5+ messages in thread
From: Steve Santacroce @ 2003-08-25 21:13 UTC (permalink / raw)
To: pgsql-admin
> > 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!
^ permalink raw reply [nested|flat] 5+ messages in thread
* Re: pg_ctl won't start postgres, but postmaster will?!
2003-08-25 15:14 pg_ctl won't start postgres, but postmaster will?! Steve Santacroce <steves@csh.rit.edu>
2003-08-25 18:00 ` Re: pg_ctl won't start postgres, but postmaster will?! Peter Eisentraut <peter_e@gmx.net>
2003-08-25 21:13 ` Re: pg_ctl won't start postgres, but postmaster will?! Steve Santacroce <steves@csh.rit.edu>
@ 2003-08-27 18:15 ` Yuji Shinozaki <ys2n@virginia.edu>
0 siblings, 0 replies; 5+ messages in thread
From: Yuji Shinozaki @ 2003-08-27 18:15 UTC (permalink / raw)
To: Steve Santacroce <steves@csh.rit.edu>; +Cc: pgsql-admin
On Mon, 25 Aug 2003, Steve Santacroce wrote:
> 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.
Terse answer: Do not use quotes in your exec statement.
yuji
----
Yuji Shinozaki Computer Systems Senior Engineer
ys2n@virginia.edu Advanced Technologies Group
(434)924-7171 Information Technology & Communication
http://www.people.virginia.edu/~ys2n University of Virginia
^ permalink raw reply [nested|flat] 5+ messages in thread
* Re: pg_ctl won't start postgres, but postmaster will?!
2003-08-25 15:14 pg_ctl won't start postgres, but postmaster will?! Steve Santacroce <steves@csh.rit.edu>
@ 2003-08-25 21:07 ` Tom Lane <tgl@sss.pgh.pa.us>
1 sibling, 0 replies; 5+ messages in thread
From: Tom Lane @ 2003-08-25 21:07 UTC (permalink / raw)
To: Steve Santacroce <steves@csh.rit.edu>; +Cc: pgsql-admin
Steve Santacroce <steves@csh.rit.edu> writes:
> /usr/local/bin/pg_ctl -D /pgdata -l /var/log/pgsql
> and nothing, postmaster still doesn't start!
You forgot the "start" keyword. I'm surprised pg_ctl fails to complain...
regards, tom lane
^ permalink raw reply [nested|flat] 5+ messages in thread
end of thread, other threads:[~2003-08-27 18:15 UTC | newest]
Thread overview: 5+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2003-08-25 15:14 pg_ctl won't start postgres, but postmaster will?! Steve Santacroce <steves@csh.rit.edu>
2003-08-25 18:00 ` Peter Eisentraut <peter_e@gmx.net>
2003-08-25 21:13 ` Steve Santacroce <steves@csh.rit.edu>
2003-08-27 18:15 ` Yuji Shinozaki <ys2n@virginia.edu>
2003-08-25 21:07 ` Tom Lane <tgl@sss.pgh.pa.us>
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