[Pkg-nagios-devel] Bug#652647: icinga-idoutils.postinst can be changed to correct this

Robert J. Clark clark at exiter.com
Wed Jan 18 00:59:12 UTC 2012


This is similar to http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=589487 and 
a suggestion in the audit trail for that bug also works for icinga-idoutils.  
When I changed the postinst script to add 3>&-, I was able to complete the 
upgrade and reconfigure without it hanging.

Diff attached.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.alioth.debian.org/pipermail/pkg-nagios-devel/attachments/20120117/1edef344/attachment.html>
-------------- next part --------------
--- icinga-idoutils.postinst.orig       2012-01-17 19:57:05.000000000 -0500
+++ icinga-idoutils.postinst    2012-01-17 19:49:06.000000000 -0500
@@ -14,9 +14,9 @@
 if [ -x "/etc/init.d/ido2db" ]; then
        update-rc.d ido2db defaults 35 20 >/dev/null
        if [ -x "`which invoke-rc.d 2>/dev/null`" ]; then
-               invoke-rc.d ido2db start || exit $?
+               invoke-rc.d ido2db start 3>&- || exit $?
        else
-               /etc/init.d/ido2db start || exit $?
+               /etc/init.d/ido2db start 3>&- || exit $?
        fi
 fi
 # End automatically added section


More information about the Pkg-nagios-devel mailing list