FS#29722 - [cronie] Missing sendmail causes error entries

Attached to Project: Arch Linux
Opened by SJ_UnderWater (SJ_UnderWater) - Thursday, 03 May 2012, 00:21 GMT
Last edited by Gaetan Bisson (vesath) - Friday, 04 May 2012, 19:19 GMT
Task Type Bug Report
Category Packages: Core
Status Closed
Assigned To Gaetan Bisson (vesath)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:
Missing "optional" sendmail binary causes entries in the error log at every boot, even though they are marked "INFO". Suggested changes below (untested).

Additional info (original above new):
runjob.c:
complain("Can't find sendmail at %s, not mailing output", SENDMAIL);
explain("Can't find sendmail at %s, not mailing output", SENDMAIL);
cron.c:
log_it("CRON", pid, "INFO","Syslog will be used instead of sendmail.", errno);
log_it("CRON", pid, "INFO","Syslog will be used instead of sendmail.", 0);

Steps to reproduce:
Restart crond.
This task depends upon

Closed by  Gaetan Bisson (vesath)
Friday, 04 May 2012, 19:19 GMT
Reason for closing:  Upstream
Comment by Karol Błażewicz (karol) - Thursday, 03 May 2012, 01:53 GMT
Shouldn't this be suggested upstream?
Comment by SJ_UnderWater (SJ_UnderWater) - Thursday, 03 May 2012, 02:16 GMT
it should, but I'm also mentioning it here because of the decision to make smtp-server optional. If the maintainer believes that it should be an optional package (i.e. works normally without sendmail, no errors), then the messages should reflect that.
As it is, cronie appears to fail gracefully without sendmail, instead of working with it optionally.
Comment by Gaetan Bisson (vesath) - Thursday, 03 May 2012, 07:49 GMT
I do not understand the issue here:
- smtp-server really is optional in the sense that cronie runs fine without it.
- INFO logs are not errors.

I believe you overestimate the severity of those two messages, when the package runs perfectly normally.
Comment by SJ_UnderWater (SJ_UnderWater) - Thursday, 03 May 2012, 07:52 GMT
they are errors when they appear in the error log, hence my post.
Comment by Gaetan Bisson (vesath) - Thursday, 03 May 2012, 08:15 GMT
Alright.

Could you send this bug report together with your patch to "mmaslano AT redhat DOM com "?

Loading...