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

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



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
non-0 exit code since it cannot invalidate the cache if the daemon is
not running, but that is OK for adduser. I think you simply should not
care if nscd -i succeeds or fails.

Gabor

-- 
     ---------------------------------------------------------
     MTA SZTAKI Computer and Automation Research Institute
                Hungarian Academy of Sciences
     ---------------------------------------------------------



Reply to: