Public bug reported:
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/postgresql-common/init.d-functions (which
implements the actual init script correctly reports an exit status of 3
if the service is stopped and 0 if it is running. But the wrapper
/etc/init.d/postgresql-8.3 does not pass the status on. The fix is very
simple indeed and should probably be applied to the other parameters
(start, stop, restart) as well.
--- /etc/init.d/postgresql-8.3.orig 2008-07-16 08:52:47.000000000 +0000
+++ /etc/init.d/postgresql-8.3 2008-07-16 08:42:18.000000000 +0000
@@ -35,6 +35,7 @@
;;
status)
status $VERSION
+ exit $?
;;
autovac-start)
autovac_start $VERSION
[1] http://refspecs.freestandards.org/LSB_3.1.0/LSB-Core-generic/LSB-
Core-generic/iniscrptact.html
** Affects: postgresql-8.3 (Ubuntu)
Importance: Undecided
Status: New
--
postgre init script is not LSB compliant (for heartbeat, i.e. linux-ha)
https://bugs.launchpad.net/bugs/248939
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs