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

Bug#229484: postinst fails when nscd already running



Package: nscd
Version: 2.3.2.ds1-10
Severity: minor


On an upgrade (which included a new nscd package) a while ago, nscd
failed to start in its postinst, causing the postinst to fail.  I didn't
look into the problem, and hoped it would go away the next time I ran
aptitude.  In fact, the postinst continued to fail every time I did any
package upgrades.  (But I never got a new nscd in this period.)

It seems that the postinst will always fail when nscd is already
running.  Specifically, because it uses "set -e" and calls
/etc/init.d/nscd start, which calls start-stop-daemon, which fails when
nscd is running.  I don't know how I got into the state where nscd was
running during the postinst, but since this resulted in annoying
behavior, I thought it might be considered a bug in nscd.  I looked
briefly at policy and some other packages, and I could not decide
exactly where the fault lay.  Maybe you'll have a better idea.

I was able to work around the problem by stopping nscd, then running
dpkg --configure --pending.  This time, the postinst completed
successfully.

Andrew

-- System Information:
Debian Release: testing/unstable
Architecture: i386
Kernel: Linux techloaner2 2.4.22techloaner2+xpcmcia #1 Wed Dec 24 13:07:19 EST 2003 i686
Locale: LANG=en_US, LC_CTYPE=en_US

Versions of packages nscd depends on:
ii  libc6                       2.3.2.ds1-10 GNU C Library: Shared libraries an

-- no debconf information




Reply to: