[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#785214: sitesummary: postinst hangs after exit

[Dominik George]
> 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
> exit.
> The package is uninstallable without editing the postinst script
> accordingly.

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.

Happy hacking
Petter Reinholdtsen

Reply to: