On 9/15/09 6:10 PM, Giuseppe Iuculano wrote:
Francesco Potorti` ha scritto:
What you describe is a software decision that has a problem (a bug).
There must be a way out of this problem.  If that decision cannot be
modified for some reason, then some other way should be found.  One
possibility would be for the init.d script to signal an error upon
starting the daemon when it detects this particular problem.  But there
may be other possibilities.  The bottom line is that one cannot let this
problem go undetected by design: this would mean that the design is
flawed (bugged).

If smartmontools haven't mailx in Depends, warning the user about the missing
/usr/bin/mail doesn't make sense.

I don't know how Debian packaging works. But if a script needs mailx, and mailx is not installed, then it would make sense to have the script generate error messages saying 'your system does not have /usr/bin/mail, please install the mailx package'


Why not something like this?

# Send mail if /usr/bin/mail exists or exit silently
[ -x /usr/bin/mail ] || (echo "Your system does not have /usr/bin/mail. Install the mailx package" ; exit N)

not sure if N should be zero or nonzero



--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to