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

Re: Going nuts over debconf



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

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.

- -- 
Steve Langasek                   Give me a lever long enough and a Free OS
Debian Developer                   to set it on, and I can move the world.
vorlon@debian.org                                   http://www.debian.org/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)

iD8DBQFDattTKN6ufymYLloRAryuAJwIhwkgmXl7K9qgj949HXqAzgKinQCgp49s
ADFBfkUcUJX8PMg39uom9/o=
=6Fmo
-----END PGP SIGNATURE-----



Reply to: