Skip site navigation (1) Skip section navigation (2)

Re: We should Axe /contrib/start-scripts

From: "Kevin Grittner" <Kevin(dot)Grittner(at)wicourts(dot)gov>
To: "Tom Lane" <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: "Josh Berkus" <josh(at)agliodbs(dot)com>, "Alvaro Herrera" <alvherre(at)commandprompt(dot)com>, "Chander Ganesan" <chander(at)otg-nc(dot)com>, "PostgreSQL-development" <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: We should Axe /contrib/start-scripts
Date: 2009-08-25 22:31:50
Message-ID: 4A942006020000250002A1DF@gw.wicourts.gov (view raw or flat)
Thread:
Lists: pgsql-hackers
Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote: 
> "Kevin Grittner" <Kevin(dot)Grittner(at)wicourts(dot)gov> writes:
 
>> Still, this seems like it's not as deterministic as it should be. 
>> Is there any reasonable way to pin it down beyond the PID?  Like
>> also saving a start time into the postmaster.pid file and checking
>> that it maches the start time of the PID found?
> 
> How would you get the latter in a portable fashion?  (Do not mention
> ps please ... and I don't want to hear about lsof either ...)
 
Unfortunately I don't know enough about the relevant API to begin to
answer that.  (I barely managed to frame the question....)
 
You wouldn't object to using either of those in a Linux service
script, though, would you?
 
-Kevin

In response to

Responses

pgsql-hackers by date

Next:From: Alvaro HerreraDate: 2009-08-25 22:42:12
Subject: Re: We should Axe /contrib/start-scripts
Previous:From: Tom LaneDate: 2009-08-25 22:03:30
Subject: Re: We should Axe /contrib/start-scripts

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group