Your message dated Mon, 24 Apr 2006 14:42:12 +0200
with message-id <[EMAIL PROTECTED]>
and subject line Bug#364586: postgresql-8.1: init.d script returns false on 
non-running daemon which breaks upgrades
has caused the attached Bug report to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--- Begin Message ---
Package: postgresql-8.1
Version: 8.1.3-4
Severity: normal

        Hi!

 When postgres isn't running any upgrade fails. This is due to several
things: The init.d script for postgresql returns false if the daemon
isn't running. The prerm has a quite interesting snippet in it which
comes from debhelper:

#v+
#!/bin/sh -e

VERSION=8.1

# Automatically added by dh_installinit
if [ -x "/etc/init.d/postgresql-8.1" ]; then
        if [ -x "`which invoke-rc.d 2>/dev/null`" ]; then
                invoke-rc.d postgresql-8.1 stop || exit $?
        else
                /etc/init.d/postgresql-8.1 stop || exit $?
        fi
fi
# End automatically added section
#v-

 It checks the returncode of the invoke-rc.d or init script and returns
its return value on errors. Which is quite useless when the script is
set -e, which is sort of madantory according to the policy. :)

 Often this thing fixed by putting "|| true" into the prerm, which is a
sensible thing for the prerm anyway (I have no real clue why debhelper
does produce this crazyness), but fixing the init.d script to not fail
when the daemon isn't running on stop should be done, too (likewise with
not failing on start if it's already running?). If I'm not too wrong
this is what LSB requests anyway.

 So long, and thanks for the fix in advance.
Alfie, having postgresql installed but not running all the time
-- 
"'oder?' heisst wohl, dass Sie es nicht so genau wissen.
 Vielleicht sollten Sie sich erst einmal kundig machen."
                                  -- unknown XxXX-Employee


--- End Message ---
--- Begin Message ---
Package: postgresql-common
Version: 50

Hi Gerfried,

Gerfried Fuchs [2006-04-24 14:05 +0200]:
>  When postgres isn't running any upgrade fails.

Thanks for your report. This has been fixed in the latest version of
postgresql-common (uploaded a few days ago).

Martin
-- 
Martin Pitt        http://www.piware.de
Ubuntu Developer   http://www.ubuntu.com
Debian Developer   http://www.debian.org

In a world without walls and fences, who needs Windows and Gates?

Attachment: signature.asc
Description: Digital signature


--- End Message ---

Reply via email to