postgre init script is not LSB compliant (for heartbeat, i.e. linux-ha)
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
postgresql-8.3 (Ubuntu) |
Invalid
|
Undecided
|
Unassigned | ||
postgresql-common (Ubuntu) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: postgresql-8.3
Description: Ubuntu 8.04
Release: 8.04
Package: postgresql-8.3
Version: 8.3.1-1
In order to use postgresql in a heartbeat setup, I need the init script to report the status of the service according to the LSB standard [1]. The script /usr/share/
--- /etc/init.
+++ /etc/init.
@@ -35,6 +35,7 @@
;;
status)
status $VERSION
+ exit $?
;;
autovac-start)
[1] http://
Changed in postgresql-8.3 (Ubuntu): | |
status: | New → Invalid |
I'm not sure that just returning the exit value will give you what you expect because in other patches we have identified that more and more init.d scripts are going to be running under a "set -e" environment where a non-zero return value terminates the script, so in your suggested patch, status $VERSION will terminate if the return value is non-zero, negating the purpose of exiting with a return value.
See https:/ /wiki.ubuntu. com/InitScriptS tatusActions for further discussion.