Re: [HACKERS] postmaster.pid

From: Evan Simpson <evan(at)4-am(dot)com>
To: Tatsuo Ishii <t-ishii(at)sra(dot)co(dot)jp>
Cc: pgsql-hackers(at)postgreSQL(dot)org
Subject: Re: [HACKERS] postmaster.pid
Date: 1999-12-03 17:45:55
Message-ID: 384801D3.8FB691E6@4-am.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Tatsuo Ishii wrote:

> I have committed changes to postmaster.c. Now it creates a file called
> "postmaster.pid" under $PGDATA, which holds postmaster's process
> id. If the file has already existed, postmaster won't start.

Do you just test to see if the file exists? If so, I would suggest
actually reading the pid and checking to see if the process is still
running. That way we don't have to 'rm postmaster.pid' if the postmaster
dies abnormally (Netscape for Linux has this problem).

Cheers,

Evan @ 4-am

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Vince Vielhaber 1999-12-03 17:51:56 Re: [HACKERS] Re: [Fwd: postgresql-6.5.3. RPMs (Well Done!)]
Previous Message Bruce Momjian 1999-12-03 17:35:28 Re: [HACKERS] Re: [Fwd: postgresql-6.5.3. RPMs (Well Done!)]