init script status action does not reflect dead postgresql service
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
postgresql-common (Ubuntu) |
Fix Released
|
Undecided
|
Martin Pitt |
Bug Description
Binary package hint: postgresql-common
Hardy, postgresql-common 86
This bug was discovered when encountering Bug #203920, where the postgres database does not start.
That test suggests determining the status of the database by "sudo -u postgres psql -l".
Alternatively, one should also be able to use: "/etc/init.
However, that action actually lists the postgres clusters and looks for one that is marked "down". In this case, the local daemon is dead and we have no clusters.
The Linux Standard Base specification defines the expected responses and return codes of init script status actions:
http://
According to that document, I think the proper approach would be to exit with "4 program or service status is unknown" if there are no clusters found.
Changed in postgresql-common: | |
status: | New → In Progress |
Debdiff patch attached