From: Dave <dave@hawk-systems.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-admin@postgresql.org
Subject: Re: Postgres not starting at boot(FreeBSD) - startup script not releasing
Date: Sun, 10 Mar 2002 13:29:37 -0500
Message-ID: <DBEIKNMKGOBGNDHAAKGNMEHDNAAA.dave@hawk-systems.com> (raw)
In-Reply-To: <27064.1015777336@sss.pgh.pa.us>
Sorry, should point out that the stop is resulting from executing a ^c after
running the script manually. Since the script runs... postgres starts, but
from reading the startup script, it is waiting for the pid file to appear before
reporting suscess... and it isn't doing this. Or at least not exiting and
leaving the postmaster running. It just sits there... thus the ^c to regain the
terminal.
opening two terminals, I can run the start script, and while the first terminal
is sitting there waiting for the script to release control, move to the second
terminal and view the results... postmaster running fine, pid file there, all
normal.
if I execute the script with the & behind it, it allows everything through after
entering another <cr> which from what I can see suspends the session which then
clears normally. (making sense?)
Confused still as to the cause or how to rectify.
Dave
>-----Original Message-----
>From: Tom Lane [mailto:tgl@sss.pgh.pa.us]
>Sent: Sunday, March 10, 2002 11:22 AM
>To: Dave
>Cc: pgsql-admin@postgresql.org
>Subject: Re: [ADMIN] Postgres not starting at boot(FreeBSD) - startup
>script not releasing
>
>
>"Dave" <dave@hawk-systems.com> writes:
>> DEBUG: Data Base System is starting up at Sat Mar 9 17:05:45 2002
>> DEBUG: Data Base System was shut down at Sat Mar 9 17:05:39 2002
>> DEBUG: Data Base System is in production state at Sat Mar 9 17:05:45 2002
>> Fast Shutdown request at Sat Mar 9 17:05:48 2002
>> DEBUG: Data Base System shutting down at Sat Mar 9 17:05:48 2002
>> DEBUG: Data Base System shut down at Sat Mar 9 17:05:48 2002
>
>It looks like something is hitting the postmaster with a SIGINT signal
>as soon as it starts. Got any idea what might be doing that? It's
>not pg_ctl, for sure (unless the "something" is firing your init
>script with a 'stop' option). In any case I think you should be looking
>for outside agencies, not a problem directly in this init script.
>
> regards, tom lane
>
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: dave@hawk-systems.com, tgl@sss.pgh.pa.us
Subject: Re: Postgres not starting at boot(FreeBSD) - startup script not releasing
In-Reply-To: <DBEIKNMKGOBGNDHAAKGNMEHDNAAA.dave@hawk-systems.com>
References: <27064.1015777336@sss.pgh.pa.us> <DBEIKNMKGOBGNDHAAKGNMEHDNAAA.dave@hawk-systems.com>
* 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