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

Re: Going nuts over debconf

On Thu, 03 Nov 2005, Steve Langasek wrote:
> On Thu, Nov 03, 2005 at 10:32:07PM -0500, Peter S Galbraith wrote:
> > Problem summary: Using debconf and rc.d script hangs package installation
> > I am merging packages `powstatd' and `powstad-crypt' into a single new
> > `powstatd' package with encryption enabled.  I wrote a debconf script
> > that displays a warning in certain cases when the configuration file must
> > be edited for the new package to continue working.
> > Upgrading to the new package works fine if the postinst script does not
> > start an rc.d process (e.g. because the package conffile doesn't enable
> > it).  Upgrading hangs when the postinst process is started.
> This normally indicates that the process being started from the init script
> doesn't daemonize properly, and still has file descriptors open to debconf.
> The standard workaround for this is to call db_stop at the end of your
> postinst to force-detach the debconf daemon.

And the proper fix is to call db_stop AND of course fix the daemon to close
open fds it doesn't need.  Unfortunately, there are only kludgy ways to do
so as the kernel won't tell you which FDs you have that are open.

  "One disk to rule them all, One disk to find them. One disk to bring
  them all and in the darkness grind them. In the Land of Redmond
  where the shadows lie." -- The Silicon Valley Tarot
  Henrique Holschuh

Reply to: