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: Always 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 running. Expected Results: It should have started a postmaster for the central database. Additional info: 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.