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

Re: Init scripts, maintainer scripts, and debhelper



Marc Haber <debian-mentors.lists.debian.org@marc-haber.de> writes:

> Is there a recommendation to make one's package better behaved? Using
> start-stop-daemon --oknodo does not seem to be the correct way since
> this turns off error detection completely.

Why do you think so? My man page says:

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

So more severe problems should still be flagged with an error code. For
example I just checked

  start-stop-daemon --start --exec /no-such-file --oknodo

and it does return an error.

-- 
Robbe

Attachment: signature.ng
Description: PGP signature


Reply to: