[Bug 626318] New: logrotate cron job produces daily mail
http://bugzilla.novell.com/show_bug.cgi?id=626318 http://bugzilla.novell.com/show_bug.cgi?id=626318#c0 Summary: logrotate cron job produces daily mail Classification: openSUSE Product: openSUSE 11.3 Version: Final Platform: Other OS/Version: Other Status: NEW Severity: Normal Priority: P5 - None Component: Basesystem AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: andi-nbz@firstfloor.org QAContact: qa@suse.de Found By: --- Blocker: --- User-Agent: Mozilla/5.0 (X11; U; Linux i686 (x86_64); en-US; rv:1.9.2.8) Gecko/20100722 Firefox/3.6.8 Since I updated my system from 11.1 to 11.3 I get daily mail from the cron daemon for the logrotate cronjob This always was due the echo -n "Reload syslog service" in the syslog init script, which gets called from logrotate I think. I commented this now out, but perhaps it should be fixed somehow in logrotate Any output from this command results in a mail from cron Reproducible: Always Steps to Reproduce: 1. 2. 3. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=626318 http://bugzilla.novell.com/show_bug.cgi?id=626318#c yang xiaoyu <xyyang@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |xyyang@novell.com AssignedTo|bnc-team-screening@forge.pr |puzel@novell.com |ovo.novell.com | -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=626318 http://bugzilla.novell.com/show_bug.cgi?id=626318#c1 Petr Uzel <puzel@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Priority|P5 - None |P4 - Low Status|NEW |NEEDINFO CC| |anicka@novell.com InfoProvider| |andi-nbz@firstfloor.org Severity|Normal |Minor --- Comment #1 from Petr Uzel <puzel@novell.com> 2010-07-30 11:26:49 UTC --- Andi, please check if SEND_MAIL_ON_NO_ERROR and SEND_OUTPUT_ON_NO_ERROR are set to "no" in /etc/sysconfig/cron. Thanks -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=626318 http://bugzilla.novell.com/show_bug.cgi?id=626318#c2 --- Comment #2 from Andi N Kleen <andi-nbz@firstfloor.org> 2010-07-30 11:39:42 UTC --- % grep SEND_ /etc/sysconfig/cron /etc/sysconfig/cron:SEND_MAIL_ON_NO_ERROR="no" /etc/sysconfig/cron:# jobs is always sent. If SEND_MAIL_ON_NO_ERROR is yes, this /etc/sysconfig/cron:SEND_OUTPUT_ON_NO_ERROR="yes" These are the defaults AFAI. But that's beside the point -- logrotate shouldn't send anything (unless an error really occurred) with any setting -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=626318 http://bugzilla.novell.com/show_bug.cgi?id=626318#c Andi N Kleen <andi-nbz@firstfloor.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |NEW InfoProvider|andi-nbz@firstfloor.org | -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=626318 http://bugzilla.novell.com/show_bug.cgi?id=626318#c3 Christopher Hofmann <cwh@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |cwh@novell.com --- Comment #3 from Christopher Hofmann <cwh@novell.com> 2010-08-02 08:16:10 UTC --- Hi also wondered why I get cron OK mails after updating from 11.2 to 11.3. Here also is SEND_OUTPUT_ON_NO_ERROR="yes" which wasint the case before updating. I did the update with "zypper dup" - case that matters. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=626318 http://bugzilla.novell.com/show_bug.cgi?id=626318#c4 Petr Uzel <puzel@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |NEEDINFO InfoProvider| |anicka@novell.com --- Comment #4 from Petr Uzel <puzel@novell.com> 2010-08-04 13:23:42 UTC --- (In reply to comment #2)
But that's beside the point -- logrotate shouldn't send anything (unless an error really occurred) with any setting
Sounds reasonable - I'll have a look into it. (In reply to comment #3)
Hi also wondered why I get cron OK mails after updating from 11.2 to 11.3. Here also is SEND_OUTPUT_ON_NO_ERROR="yes" which wasint the case before updating.
Anicka: any idea? ^^^ -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=626318 http://bugzilla.novell.com/show_bug.cgi?id=626318#c5 Petr Uzel <puzel@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |ASSIGNED InfoProvider|anicka@novell.com | AssignedTo|puzel@novell.com |werner@novell.com --- Comment #5 from Petr Uzel <puzel@novell.com> 2010-08-11 13:53:20 UTC --- (In reply to comment #4)
But that's beside the point -- logrotate shouldn't send anything (unless an error really occurred) with any setting
It does not seem to be possible with current logrotate. What e.g. Debian uses (and openSUSE should use as well) is to redirect the stdout of postrotate scriptlets to /dev/null. Created request id 45383 (logrotate.syslog: redirect output of postrotate script to /dev/null) Assigning to syslogd maintainer - Werner, please review the request ^^. Thanks -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=626318 http://bugzilla.novell.com/show_bug.cgi?id=626318#c6 Dr. Werner Fink <werner@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution| |FIXED --- Comment #6 from Dr. Werner Fink <werner@novell.com> 2010-08-11 13:55:24 UTC --- already done -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=626318 https://bugzilla.novell.com/show_bug.cgi?id=626318#c7 Markus Gaugusch <markus@gaugusch.at> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |markus@gaugusch.at --- Comment #7 from Markus Gaugusch <markus@gaugusch.at> 2010-08-24 18:39:27 UTC --- *** Bug 634005 has been marked as a duplicate of this bug. *** http://bugzilla.novell.com/show_bug.cgi?id=634005 -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=626318 https://bugzilla.novell.com/show_bug.cgi?id=626318#c9 Swamp Workflow Management <swamp@suse.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Status Whiteboard| |maint:released:sle11-sp1:43 | |905 --- Comment #9 from Swamp Workflow Management <swamp@suse.de> 2011-11-04 04:31:57 UTC --- Update released for: klogd, syslogd, syslogd-debuginfo, syslogd-debugsource Products: SLE-DEBUGINFO 11-SP1 (i386, ia64, ppc64, s390x, x86_64) SLE-SDK 11-SP1 (i386, ia64, ppc64, s390x, x86_64) SLE-SERVER 11-SP1 (i386, ia64, ppc64, s390x, x86_64) -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=626318 https://bugzilla.novell.com/show_bug.cgi?id=626318#c10 Swamp Workflow Management <swamp@suse.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Status Whiteboard|maint:released:sle11-sp1:43 |maint:released:sle11-sp1:43 |905 |905 | |maint:released:sle10-sp3:46 | |028 --- Comment #10 from Swamp Workflow Management <swamp@suse.de> 2012-03-19 14:08:23 UTC --- Update released for: klogd, syslogd Products: SLE-SERVER 10-SP3-TERADATA (x86_64) -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=626318 https://bugzilla.novell.com/show_bug.cgi?id=626318#c11 Swamp Workflow Management <swamp@suse.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Status Whiteboard|maint:released:sle11-sp1:43 |maint:released:sle11-sp1:43 |905 |905 |maint:released:sle10-sp3:46 |maint:released:sle10-sp4:46 |028 |029 --- Comment #11 from Swamp Workflow Management <swamp@suse.de> 2012-03-19 14:09:02 UTC --- Update released for: klogd, syslogd Products: SLE-DESKTOP 10-SP4 (i386, x86_64) SLE-SDK 10-SP4 (i386, ia64, ppc, s390x, x86_64) SLE-SERVER 10-SP4 (i386, ia64, ppc, s390x, x86_64) -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com