This one time, at band camp, Martin Lohmeier said:
> Stephen Gran wrote:
> >Do you mean the postinst hangs, and apache2 never gets restarted?
> Yes.

OK, since it hung after outputting the line 'Forcing restart' or 
whatever, I only see two possibilites here.  Either apache2's init
script doesn't properly return to phpldapadmin's postinst (unlikely), or
phpldapadmin's postinst's use of debconf is screwing up apache2's init
script.  Boy, that was an ugly sentence, but you get the idea, I hope :)

> >Try adding 'set -x' to the top of the postinst script
> Done.
>
> >Run dpkg-reconfigure -plow phpldapadmin, and mail the output (you can
> >capture the output with script).  Also, any relevant looking messages
> >from apache2's error log would be helpful.  From the sounds of it, this
> >may be an apache2 bug, and not one in this app, but it's difficult to
> >tell just yet.
> 
> See ldap1. dpkg-reconfigure did not work (debconf was told to be low, be
> there were no questions?!). So I changed the postinst and rebuild the
> package.

Or, more likely, the package's postinst does nothing the second time
around :)  Forgot - sorry.

> "invoke-rc.d apache2 restart" and "/etc/init.d/apache2 restart" work.

Right.

> I purged and reinstalled phpmyadmin - postinst use the same code to
> restart apache, and here apache2 restarted without no problem...very
> strange...

-------------------------------------------------------
@@ -124,9 +124,7 @@
     done

     db_get phpldapadmin/restart-webserver || true
-    if [ "$RET" = "true" ]; then
+    restart="$RET"
+    db_stop || true
+    if [ "$restart" = "true" ]; then
         for webserver in $restart; do
             webserver=${webserver%,}
             if [ -x /usr/sbin/invoke-rc.d ]; then
---------------------------------------------------------

The only thing I can imagine right now is that debconf mucking with
stdin and stdout are hanging the apache2 init script.  Try the above
patch to phpldapadmin's postinst, and then run:
/var/lib/dpkg/info/phpldapadmin.postinst configure 0.9.4-10

Thanks,
-- 
 -----------------------------------------------------------------
|   ,''`.                                            Stephen Gran |
|  : :' :                                        [EMAIL PROTECTED] |
|  `. `'                        Debian user, admin, and developer |
|    `-                                     http://www.debian.org |
 -----------------------------------------------------------------

Attachment: pgp6UE4qhzpsi.pgp
Description: PGP signature

Reply via email to