Bug#785214: sitesummary: postinst hangs after exit
> The postinst script uses debconf and then restarts Apache 2.
> This causes the environment to be inherited to Apache and the debconf db
> file descriptor remaining open, causing the postinst wrapper to hang on
> The package is uninstallable without editing the postinst script
Thank you for testing and discovering this. How did you detect it? Is
there some way to detect this automatically? Would be useful to have a
test for it in autpkgtest.
Do you have a patch to fix it? I suspect using db_stop or something
like that should be able to solve it.
On the other hand, it is good behaviour of daemons to close all file
descriptors before daemonizing. It would be nice if Apache did that.