PostgreSQL init script make Heartbeat's ResourceManager believe PostgreSQL is running, even when it is not
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
postgresql-8.4 (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: postgresql-8.4
The initd-functions of PostgreSQL 8.4.4-0ubuntu10.04 make Heartbeat's ResouceManager (/usr/share/
When calling
/etc/init.
the output is like the following:
Running clusters: 8.4/main
And when no clusters are running:
Running clusters:
In both cases the word "Running" appears on stdout, making ResourceManager believe that PostgreSQL is already started. ResourceManager thus does not try to start it even though it should. The check is in /usr/share/
A really old bug filed against Debian's Heartbeat describes a similar problem: <http://
A fix to the init.d-functions could be as simple as removing the word "Running" from the output, as seen in the attached patch.
Again, I don't know if the problem is Postgres or Heartbeat and I don't know which should be fixed but since Postgres is the package that changed its behaviour (from previous versions, i.e. from 8.4.4ubuntu9.10 to 8.4.4ubuntu10.04) I think the fix should go here.
Status changed to 'Confirmed' because the bug affects multiple users.