Bug 57834 - "/etc/init.d/postgresql start" doesn't detect postmaster correctly
"/etc/init.d/postgresql start" doesn't detect postmaster correctly
Product: Red Hat Linux
Classification: Retired
Component: postgresql (Show other bugs)
i386 Linux
low Severity medium
: ---
: ---
Assigned To: Andrew Overholt
David Lawrence
: FutureFeature
Depends On:
  Show dependency treegraph
Reported: 2001-12-26 20:03 EST by Dave Peticolas
Modified: 2007-03-26 23:50 EDT (History)
0 users

See Also:
Fixed In Version:
Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2003-03-12 16:56:52 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Dave Peticolas 2001-12-26 20:03:29 EST
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.5) Gecko/20011014

Description of problem:
The postgresql /etc/init.d script detects an existing postmaster
by using pidof. This is wrong, because users can start their own
postmaster servers on user-created databases without interfering
with the main server. However, the script will not distinguish
between them and refuse to start the main server if there are
other servers running.

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
1. /etc/init.d/postgresql stop
2.start a postmaster for a user-created database
3./etc/init.d/postgresql start

Actual Results:  The init script reports that the postmaster is already

Expected Results:  It should have started a postmaster for the central

Additional info:

I think it would be better to use pg_ctl's status operation
to detect a postmaster for the main database.
Comment 1 Trond Eivind Glomsrxd 2002-01-09 16:38:25 EST
Seems like a good idea, will do.
Comment 2 Andrew Overholt 2003-03-12 16:56:52 EST
The initscript does not use pg_ctl yet, but multiple postmasters are now (as of
PostgreSQL version 7.3.2) supported.

Note You need to log in before you can comment on or make changes to this bug.