Red Hat Bugzilla – Bug 57834
"/etc/init.d/postgresql start" doesn't detect postmaster correctly
Last modified: 2007-03-26 23:50:32 EDT
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):
Steps to Reproduce:
1. /etc/init.d/postgresql stop
2.start a postmaster for a user-created database
Actual Results: The init script reports that the postmaster is already
Expected Results: It should have started a postmaster for the central
I think it would be better to use pg_ctl's status operation
to detect a postmaster for the main database.
Seems like a good idea, will do.
The initscript does not use pg_ctl yet, but multiple postmasters are now (as of
PostgreSQL version 7.3.2) supported.