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

Re: Bug#74759: xinetd: depends on portmap which may not be there



On Sat, Oct 14, 2000 at 11:54:30PM +0200, Wichert Akkerman wrote:
> > I think that inability to find the program should be ignored when the
> > --oknodo option is supplied.
> 
> I disagree: calling it with a non-existing program, username, etc.
> is invalid usage and should produce an error.

But it's an option that is supposed to avoid any errors. From the manual
page:

       -o|--oknodo
              Return exit status 0 instead of 1 if no actions are
              (would be) taken.

No actions can be taken if it can't stat the executable.

If start-stop-daemon is allowed to be used from maintainer scripts, there
should be an option to make it resistant to errors (like rm's -f or
similar). --oknodo sounds like an option designed to do that. Dying because
of not-existing program is too fragile.

Anyway, it's much easier to change this in one place, s-s-d, than to do it
in numerous maintainer scripts. Please consider it.

Anyone else care to comment?

-- 
Digital Electronic Being Intended for Assassination and Nullification



Reply to: