pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Troubles at Startup
7+ messages / 4 participants
[nested] [flat]

* Troubles at Startup
@ 2002-11-13 19:07 Hugh Esco <hesco@greens.org>
  2002-11-14 14:39 ` Re: Troubles at Startup Hugh Esco <hesco@greens.org>
  2002-11-19 22:10 ` Re: Troubles at Startup Chad R. Larson <clarson@eldocomp.com>
  2002-11-23 15:13 ` Re: Troubles at Startup Hugh Esco <hesco@greens.org>
  0 siblings, 3 replies; 7+ messages in thread

From: Hugh Esco @ 2002-11-13 19:07 UTC (permalink / raw)
  To: pgsql-admin

Hello:

Although /etc/init.d/postgresql script is listed in each run level startup 
script at /etc/rc#.d, for some reason completely beyond me, postmaster must 
be manually started each time I boot up.  Any help getting the database 
server to automatically start at boot up would be appreciated.

Thanks,
-- Hugh Esco 




^ permalink  raw  reply  [nested|flat] 7+ messages in thread

* Re: Troubles at Startup
  2002-11-13 19:07 Troubles at Startup Hugh Esco <hesco@greens.org>
@ 2002-11-14 14:39 ` Hugh Esco <hesco@greens.org>
  2002-11-14 14:57   ` Re: Troubles at Startup Nick Fankhauser <nickf@ontko.com>
  2002-11-14 17:54   ` Re: Troubles at Startup Hugh Esco <hesco@greens.org>
  2 siblings, 2 replies; 7+ messages in thread

From: Hugh Esco @ 2002-11-14 14:39 UTC (permalink / raw)
  To: pgsql-admin

I'm operating in Debian Woody, with postgreSQL 7.2.  -- Hugh

At 04:19 PM 11/13/02 -0500, you wrote:
>on linux 7.2, I just type "ntsyv" and check the postgres daemon to start 
>automatically. Don't know about other systems.
>
>Hugh Esco wrote:
>>Hello:
>>Although /etc/init.d/postgresql script is listed in each run level 
>>startup script at /etc/rc#.d, for some reason completely beyond me, 
>>postmaster must be manually started each time I boot up.  Any help 
>>getting the database server to automatically start at boot up would be 
>>appreciated.
>>Thanks,
>>-- Hugh Esco
>>---------------------------(end of broadcast)---------------------------
>>TIP 4: Don't 'kill -9' the postmaster
>




^ permalink  raw  reply  [nested|flat] 7+ messages in thread

* Re: Troubles at Startup
  2002-11-13 19:07 Troubles at Startup Hugh Esco <hesco@greens.org>
  2002-11-14 14:39 ` Re: Troubles at Startup Hugh Esco <hesco@greens.org>
@ 2002-11-14 14:57   ` Nick Fankhauser <nickf@ontko.com>
  1 sibling, 0 replies; 7+ messages in thread

From: Nick Fankhauser @ 2002-11-14 14:57 UTC (permalink / raw)
  To: Hugh Esco <hesco@greens.org>; pgsql-admin


> I'm operating in Debian Woody, with PostgreSQL 7.2.  -- Hugh

Hugh-

Did you install from the Debian package or compile-your-own? We're running
7.2 on Debian 2.4, and the startup/shutdown script that Oliver Elphick
created for the Debian package has worked flawlessly for us.

If you did your own install, let me know & I'll send you a copy of the
startup script that came with the Debian package off-list.

Alternately, I recommend just using the Debian package if you don't mind
being one step back from the cutting edge.

-Nick




^ permalink  raw  reply  [nested|flat] 7+ messages in thread

* Re: Troubles at Startup
  2002-11-13 19:07 Troubles at Startup Hugh Esco <hesco@greens.org>
  2002-11-14 14:39 ` Re: Troubles at Startup Hugh Esco <hesco@greens.org>
@ 2002-11-14 17:54   ` Hugh Esco <hesco@greens.org>
  1 sibling, 0 replies; 7+ messages in thread

From: Hugh Esco @ 2002-11-14 17:54 UTC (permalink / raw)
  To: nickf@ontko.com; pgsql-admin

Frankly, I cannot remember.  It was before the election that I did it and 
it has been a very busy few weeks since then.  I bookmarked several pg 
pages in my browsers and suspect that I downloaded and compiled it on my 
own, instead of using the apt-get utility.  Please do send me that 
script.  Thanks.

-- Hugh

At 09:57 AM 11/14/02 -0500, Nick Fankhauser wrote:

> > I'm operating in Debian Woody, with PostgreSQL 7.2.  -- Hugh
>
>Hugh-
>
>Did you install from the Debian package or compile-your-own? We're running
>7.2 on Debian 2.4, and the startup/shutdown script that Oliver Elphick
>created for the Debian package has worked flawlessly for us.
>
>If you did your own install, let me know & I'll send you a copy of the
>startup script that came with the Debian package off-list.
>
>Alternately, I recommend just using the Debian package if you don't mind
>being one step back from the cutting edge.
>
>-Nick




^ permalink  raw  reply  [nested|flat] 7+ messages in thread

* Re: Troubles at Startup
  2002-11-13 19:07 Troubles at Startup Hugh Esco <hesco@greens.org>
@ 2002-11-19 22:10 ` Chad R. Larson <clarson@eldocomp.com>
  2 siblings, 0 replies; 7+ messages in thread

From: Chad R. Larson @ 2002-11-19 22:10 UTC (permalink / raw)
  To: Hugh Esco <hesco@greens.org>; pgsql-admin

At 12:07 PM 11/13/02 , Hugh Esco wrote:
>Although /etc/init.d/postgresql script is listed in each run level startup 
>script at /etc/rc#.d, for some reason completely beyond me, postmaster 
>must be manually started each time I boot up.  Any help getting the 
>database server to automatically start at boot up would be appreciated.

The problem we had turned out to have nothing to do with the startup, it 
was the shutdown.   If you have a crash or other hurried shutdown, 
sometimes the ${PGDATA}/postmaster.pid file doesn't get removed.  Then the 
startup will fail.  Check you're getting clean shutdowns of the 
postmaster.  You could also check to see if the PID in the postmaster pid 
file actually exists by using a "kill 0 <pid>" in the startup script.


         -crl
--
Chad R. Larson (CRL22)    chad@eldocomp.com
   Eldorado Computing, Inc.   602-604-3100
      5353 North 16th Street, Suite 400
        Phoenix, Arizona   85016-3228




^ permalink  raw  reply  [nested|flat] 7+ messages in thread

* Re: Troubles at Startup
  2002-11-13 19:07 Troubles at Startup Hugh Esco <hesco@greens.org>
@ 2002-11-23 15:13 ` Hugh Esco <hesco@greens.org>
  2002-11-23 18:37   ` Re: Troubles at Startup Oliver Elphick <olly@lfix.co.uk>
  2 siblings, 1 reply; 7+ messages in thread

From: Hugh Esco @ 2002-11-23 15:13 UTC (permalink / raw)
  To: pgsql-admin

Problem solved!

When using pg_ctl to make the postmaster see a pg_hba.conf file that had 
been edited while the database server was running, I got a message that it 
looked for, but did not find, the psql script in the 
/usr/lib/postgresql/bin directory.  So I copied this file from /usr/bin 
(where the apt-get install postgresql had installed it) to 
/usr/lib/postgresql/bin.  And while I am still having trouble invoking a 
psql command line prompt, I am now getting postmaster starting up 
automatically at boot up, exactly as /etc/rc#.d says it should.

Is there some appropriate place I should report this problem to the folks 
who build and maintain the Debian package for postgresql, so this matter 
can be handled in future distributions?

-- Hugh Esco

At 02:07 PM 11/13/02 -0500, Hugh Esco wrote:
>Hello:
>
>Although /etc/init.d/postgresql script is listed in each run level startup 
>script at /etc/rc#.d, for some reason completely beyond me, postmaster 
>must be manually started each time I boot up.  Any help getting the 
>database server to automatically start at boot up would be appreciated.
>
>Thanks,
>-- Hugh Esco





^ permalink  raw  reply  [nested|flat] 7+ messages in thread

* Re: Troubles at Startup
  2002-11-13 19:07 Troubles at Startup Hugh Esco <hesco@greens.org>
  2002-11-23 15:13 ` Re: Troubles at Startup Hugh Esco <hesco@greens.org>
@ 2002-11-23 18:37   ` Oliver Elphick <olly@lfix.co.uk>
  0 siblings, 0 replies; 7+ messages in thread

From: Oliver Elphick @ 2002-11-23 18:37 UTC (permalink / raw)
  To: Hugh Esco <hesco@greens.org>; +Cc: pgsql-admin

On Sat, 2002-11-23 at 15:13, Hugh Esco wrote:
> Problem solved!
> 
> When using pg_ctl to make the postmaster see a pg_hba.conf file that had 
> been edited while the database server was running, I got a message that it 
> looked for, but did not find, the psql script in the 
> /usr/lib/postgresql/bin directory.  So I copied this file from /usr/bin 
> (where the apt-get install postgresql had installed it) to 
> /usr/lib/postgresql/bin.  And while I am still having trouble invoking a 
> psql command line prompt, I am now getting postmaster starting up 
> automatically at boot up, exactly as /etc/rc#.d says it should.

I'm not surprised you're having trouble getting a command line, since
you appear to have overwritten the real psql in
/usr/lib/postgresql/bin/psql with the symbolic link /usr/bin/psql, which
is a link to /usr/bin/pg_wrapper, which tries to call
/usr/lib/postgresql/bin/psql.

I also don't see how this can make any difference to how postmaster
starts up, since postmaster does not use psql at all.

> Is there some appropriate place I should report this problem to the folks 
> who build and maintain the Debian package for postgresql, so this matter 
> can be handled in future distributions?

Debian bug reports in general go to bugs.debian.org.  The proper way to
report them is to use reportbug (install the reportbug package).  Debian
PostgreSQL bug reports will come to me, so you needn't bother in this
particular case.

You never did answer the question whether you could run
/usr/lib/postgresql/bin/psql directly.

psql is part of the postgresql-client package, not postgresql.  It seems
to me you should reinstall postgresql-client, and then we can take
another look at your situation.

-- 
Oliver Elphick                                Oliver.Elphick@lfix.co.uk
Isle of Wight, UK                             http://www.lfix.co.uk/oliver
GPG: 1024D/3E1D0C1C: CA12 09E0 E8D5 8870 5839  932A 614D 4C34 3E1D 0C1C
                 ========================================
     "The LORD is nigh unto all them that call upon him, to
      all that call upon him in truth."        
                                   Psalms 145:18




^ permalink  raw  reply  [nested|flat] 7+ messages in thread


end of thread, other threads:[~2002-11-23 18:37 UTC | newest]

Thread overview: 7+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2002-11-13 19:07 Troubles at Startup Hugh Esco <hesco@greens.org>
2002-11-14 14:39 ` Hugh Esco <hesco@greens.org>
2002-11-14 14:57   ` Nick Fankhauser <nickf@ontko.com>
2002-11-14 17:54   ` Hugh Esco <hesco@greens.org>
2002-11-19 22:10 ` Chad R. Larson <clarson@eldocomp.com>
2002-11-23 15:13 ` Hugh Esco <hesco@greens.org>
2002-11-23 18:37   ` Oliver Elphick <olly@lfix.co.uk>

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