Re: Postgres not starting at boot(FreeBSD) - startup script not releasing

From: "Dave" <dave(at)hawk-systems(dot)com>
To: "Tom Lane" <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: <pgsql-admin(at)postgresql(dot)org>
Subject: Re: Postgres not starting at boot(FreeBSD) - startup script not releasing
Date: 2002-03-10 18:29:37
Message-ID: DBEIKNMKGOBGNDHAAKGNMEHDNAAA.dave@hawk-systems.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin pgsql-general

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(at)sss(dot)pgh(dot)pa(dot)us]
>Sent: Sunday, March 10, 2002 11:22 AM
>To: Dave
>Cc: pgsql-admin(at)postgresql(dot)org
>Subject: Re: [ADMIN] Postgres not starting at boot(FreeBSD) - startup
>script not releasing
>
>
>"Dave" <dave(at)hawk-systems(dot)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
>

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Dave 2002-03-10 19:39:16 Re: Postgres not starting at boot(FreeBSD) - startup script not releasing
Previous Message Tom Lane 2002-03-10 16:22:16 Re: Postgres not starting at boot(FreeBSD) - startup script not releasing

Browse pgsql-general by date

  From Date Subject
Next Message Francisco Reyes 2002-03-10 18:30:45 Re: Advice for optimizing queries using Large Tables
Previous Message Francisco Reyes 2002-03-10 18:10:21 Wal_buffers memory utilization