On Sat, 10 Mar 2007, Filipus Klutiero wrote:
Le mardi 6 mars 2007 23:00, Mike Young a écrit :
Package: openbsd-inetd
Version: 0.20050402-5
Followup-For: Bug #386469
I'm seeing this same error on an etch update/upgrade today.
my pid for inetd doesn't change during the attempt at install, which
suggests that the preinstall for openbsd-inetd doesn't make any attempt
to stop the preexisting process. (or any attempt that is made, fails)
I'm not familiar with this package specifically, but glancing at the
preinst script I am leaning towards the first hypothesis (we make no
attempt to stop the preexisting process).
The script has:
upgrade_from_old_inetd() {
if [ "$2" ] && dpkg --compare-versions "$2" ge 0.20040915-1; then
return 0
fi
This seems incorrect to me. Even when we upgrade from a previous
version, shouldn't we stop the previous instance?
This does not avoid running the rest of upgrade_from_old_inetd() when
upgrading from any previous versions, it just avoids running it when
upgrading from a version ulterior to 0.20040915-1. These versions handle
stopping the old version in the prerm.
(Hello Filipus, cool you're trying to resolve this too - maybe we all
will succeed with joined forces)
If I might add - the regular stopping of the daemon should happen in prerm
anyway which *should* (!) be executed (as far as I know) when the old
package is removed (and before the new installed). From prerm:
if [ -x "/etc/init.d/openbsd-inetd" ]; then
if [ -x "`which invoke-rc.d 2>/dev/null`" ]; then
invoke-rc.d openbsd-inetd stop || exit $?
else
/etc/init.d/openbsd-inetd stop || exit $?
fi
fi
*t
--
--------------------------------------------------------
Tomas Pospisek
http://sourcepole.com - Linux & Open Source Solutions
--------------------------------------------------------