BUG #4381: Postgresql daemon won't stay in the foreground

Started by Tom Wrightover 17 years ago5 messagesbugs
Jump to latest
#1Tom Wright
tom.c.wright@gmail.com

The following bug has been logged online:

Bug reference: 4381
Logged by: Tom
Email address: tom.c.wright@gmail.com
PostgreSQL version: 8.3.3
Operating system: FreeBSD 7.0-RELEASE-p3
Description: Postgresql daemon won't stay in the foreground
Details:

I want to run postgres under daemontools, but no matter what I do, postgres
will not stay in the foreground... has anyone else seen this or know how to
fix it?

#2Heikki Linnakangas
heikki.linnakangas@enterprisedb.com
In reply to: Tom Wright (#1)
Re: BUG #4381: Postgresql daemon won't stay in the foreground

Tom wrote:

I want to run postgres under daemontools, but no matter what I do, postgres
will not stay in the foreground... has anyone else seen this or know how to
fix it?

How are you starting it then? Just run "postgres -D <datadir>", and it
will stay in foreground.

PS. this is unlikely a bug. Please use the pgsql-general mailing list
next time.

--
Heikki Linnakangas
EnterpriseDB http://www.enterprisedb.com

#3Tom Wright
tom.c.wright@gmail.com
In reply to: Heikki Linnakangas (#2)
Re: BUG #4381: Postgresql daemon won't stay in the foreground

I'm starting it with "postgres -D <datadir>", and it immediately forks
into the background....

Is there something I can do to trap some debug output for you?

Heikki Linnakangas wrote:

Show quoted text

Tom wrote:

I want to run postgres under daemontools, but no matter what I do,
postgres
will not stay in the foreground... has anyone else seen this or know
how to
fix it?

How are you starting it then? Just run "postgres -D <datadir>", and it
will stay in foreground.

PS. this is unlikely a bug. Please use the pgsql-general mailing list
next time.

#4Tom Lane
tgl@sss.pgh.pa.us
In reply to: Tom Wright (#3)
Re: BUG #4381: Postgresql daemon won't stay in the foreground

Tom Wright <tom.c.wright@gmail.com> writes:

I'm starting it with "postgres -D <datadir>", and it immediately forks
into the background....

Perhaps you have silent_mode set in the configuration file? AFAIK the
postmaster will never fork away from the caller unless that's been set
in one way or another.

regards, tom lane

#5Tom Wright
tom.c.wright@gmail.com
In reply to: Tom Lane (#4)
Re: BUG #4381: Postgresql daemon won't stay in the foreground

That did it (was set to silent_mode = on by default).

Thank you very much.

Tom Lane wrote:

Show quoted text

Tom Wright <tom.c.wright@gmail.com> writes:

I'm starting it with "postgres -D <datadir>", and it immediately forks
into the background....

Perhaps you have silent_mode set in the configuration file? AFAIK the
postmaster will never fork away from the caller unless that's been set
in one way or another.

regards, tom lane