Bug#330929: how can adduser reliably find out wheter nscd is running?

2005-09-30 Thread Marc Haber
Package: nscd Severity: wishlist adduser needs to invalidate certain nscd tables after changes were done. Today, it looks for the pid file of nscd to find out whether nscd is running, and then calls nscd via system() with -i and the appropriate arguments. However, this heuristics has recently beg

Bug#330929: how can adduser reliably find out wheter nscd is running?

2005-10-03 Thread Gabor Gombas
On Fri, Sep 30, 2005 at 04:05:40PM +0200, Marc Haber wrote: > However, this heuristics has recently begun to fail because the > pidfile has moved from /var/run to /var/run/nscd. Instead of changing > adduser to check for both files (and probably fail on the next > location change), I'd like to hav

Bug#330929: how can adduser reliably find out wheter nscd is running?

2005-10-03 Thread Marc Haber
On Mon, Oct 03, 2005 at 05:52:59PM +0200, Gabor Gombas wrote: > On Fri, Sep 30, 2005 at 04:05:40PM +0200, Marc Haber wrote: > > However, this heuristics has recently begun to fail because the > > pidfile has moved from /var/run to /var/run/nscd. Instead of changing > > adduser to check for both fil

Bug#330929: how can adduser reliably find out wheter nscd is running?

2005-10-04 Thread Gabor Gombas
On Mon, Oct 03, 2005 at 06:07:26PM +0200, Marc Haber wrote: > That's how we're going to do it in the future. I would, however, like > to have the fact documented that it is not an error to run nscd -i if > no daemon is running. What do you mean by "not an error"? nscd -i of course will return a n

Bug#330929: how can adduser reliably find out wheter nscd is running?

2005-10-04 Thread Marc Haber
On Tue, Oct 04, 2005 at 01:28:07PM +0200, Gabor Gombas wrote: > On Mon, Oct 03, 2005 at 06:07:26PM +0200, Marc Haber wrote: > > That's how we're going to do it in the future. I would, however, like > > to have the fact documented that it is not an error to run nscd -i if > > no daemon is running. >

Bug#330929: how can adduser reliably find out wheter nscd is running?

2005-10-04 Thread Gabor Gombas
On Tue, Oct 04, 2005 at 02:18:18PM +0200, Marc Haber wrote: > I am concerned about nscd suddenly giving an actual error message > instead of silently returning non-zero, which might confuse the users. Well, my personal preference would be not to worry about this until it becomes a real issue (tha

Bug#330929: how can adduser reliably find out wheter nscd is running?

2005-10-04 Thread Marc Haber
On Tue, Oct 04, 2005 at 02:38:56PM +0200, Gabor Gombas wrote: > On Tue, Oct 04, 2005 at 02:18:18PM +0200, Marc Haber wrote: > > I am concerned about nscd suddenly giving an actual error message > > instead of silently returning non-zero, which might confuse the users. > > Well, my personal prefere

Bug#330929: how can adduser reliably find out wheter nscd is running?

2005-10-04 Thread Gabor Gombas
On Tue, Oct 04, 2005 at 02:41:26PM +0200, Marc Haber wrote: > Adduser has _a lot_ of installations and is mainly used by maintainer > scripts. Thus, _a lot_ of people are bound to see error messages > generated by adduser and are bound to be confused by them. > > > Or you can just add "2>/dev/nul

Bug#330929: how can adduser reliably find out wheter nscd is running?

2005-10-04 Thread Marc Haber
On Tue, Oct 04, 2005 at 03:17:33PM +0200, Gabor Gombas wrote: > Are there any useful "real" error messages now? For example, if nscd is > not running, trying to invalidate a non-existing map will not produce an > error message, and if nscd is running, the error message is misleading. I don't know,