Hi Marco, I've prepared an NMU for this issue with the following patch. I think the 'which invoke-rc.d' check is probably unnecessary altogether, because invoke-rc.d has been part of essential since sarge, but it doesn't hurt overly much; anyway, if invoke-rc.d is missing, I haven't bothered calling the init script by hand, because that's such a pathological corner case.
I've also made it best-effort, because if for some reason invoke-rc.d returns an error, the postinst should still have an opportunity to /try/ to start the service again, and if that succeeds, consider the package configured. Package is built and sitting on my hard drive; I won't upload until morning (hmm... afternoon rather), so if you see any problems with this NMU please say so. -- Steve Langasek Give me a lever long enough and a Free OS Debian Developer to set it on, and I can move the world. [EMAIL PROTECTED] http://www.debian.org/
diff -u openbsd-inetd-0.20050402/debian/changelog openbsd-inetd-0.20050402/debian/changelog --- openbsd-inetd-0.20050402/debian/changelog +++ openbsd-inetd-0.20050402/debian/changelog @@ -1,3 +1,13 @@ +openbsd-inetd (0.20050402-5.1) unstable; urgency=high + + * Non-maintainer upload. + * High-urgency upload for RC bugfix. + * Try to stop openbsd-inetd again in the postinst before starting it, + because update-inetd may have restarted it after the prerm ran on + upgrade. Really closes: #386469. + + -- Steve Langasek <[EMAIL PROTECTED]> Wed, 21 Mar 2007 04:25:24 -0700 + openbsd-inetd (0.20050402-5) unstable; urgency=medium * Try again to fix #386469, this time by removing from the init script only in patch2: unchanged: --- openbsd-inetd-0.20050402.orig/debian/openbsd-inetd.postinst +++ openbsd-inetd-0.20050402/debian/openbsd-inetd.postinst @@ -0,0 +1,11 @@ +#!/bin/sh +set -e + +if [ -x "/etc/init.d/openbsd-inetd" ] && which invoke-rc.d >/dev/null 2>&1 +then + # ignore any errors, this should be best-effort as it shouldn't + # normally be needed in the first place + invoke-rc.d openbsd-inetd stop || true +fi + +#DEBHELPER#