Bug 247228
Summary: | cron jobs fail semi-randomly if sendmail incapacitated | ||||||
---|---|---|---|---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Bela Lubkin <blubkin> | ||||
Component: | vixie-cron | Assignee: | Marcela Mašláňová <mmaslano> | ||||
Status: | CLOSED RAWHIDE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||
Severity: | high | Docs Contact: | |||||
Priority: | low | ||||||
Version: | rawhide | ||||||
Target Milestone: | --- | ||||||
Target Release: | --- | ||||||
Hardware: | All | ||||||
OS: | Linux | ||||||
Whiteboard: | |||||||
Fixed In Version: | Doc Type: | Bug Fix | |||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | Environment: | ||||||
Last Closed: | 2007-10-30 08:48:39 UTC | Type: | --- | ||||
Regression: | --- | Mount Type: | --- | ||||
Documentation: | --- | CRM: | |||||
Verified Versions: | Category: | --- | |||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
Cloudforms Team: | --- | Target Upstream Version: | |||||
Embargoed: | |||||||
Attachments: |
|
Description
Bela Lubkin
2007-07-06 05:28:06 UTC
Created attachment 158639 [details]
Shell script, to be run as a repeating cron job
Thank you for report. I've added syslog report (warning about possible problem), but I'm thinking about some better fix. Some checking of the sendmail or other mail service could solve this issue. I'd like to see the text of the "possible problem" syslog warning. For the full fix, remember a system may deliberately omit mailers for enhanced security. My analysis shows that the root cause is crond's cron_popen() not noticing execvp() failure. I recommend fixing by: 1. fix cron_popen() to notice execvp() failure, return failure to its caller. 2. cron_popen()'s caller in cron shouldn't exit on failure, just syslog a message [including errno or other specifics of _why_ it failed], then run the command without logging -- as if `mailto' was empty. This makes cron jobs on my hypothetical no-mailer system somewhat noisy. I think that's acceptable: system designer/operator who wants to avoid the noise can rebuild cron without it, force mailto="" for all cron jobs, or supply a dummy /usr/sbin/sendmail. The important thing is that they'll actually _notice_ the issue and be able to deal with it. Which is much much better than having some random subset of cron jobs mysteriously die in mid-operation. The first problem is solved with message: CRON: Exec of (/usr/lib/sendmail) had failed because: (No such file or directory) The solution of the second problem is in progress. "has failed" should be "failed". Adding relevant ISC engineers. Ok, not adding them -- apparently can't add arbitrary email addresses. I would like to add Evan Hunt & Paul Vixie. The fix is complete. I added it in F-8 (updates). I'm not sure, when will be available. Now is fix also in devel of vixie-cron. If you have any thoughts about it, please let me know. |