Article View: alt.privacy.anon-server
Article #283163Re: Cron Error with Mail.info
From: Anonymous Remailer (austria)
Date: Tue, 21 Jun 2016 20:52
Date: Tue, 21 Jun 2016 20:52
69 lines
2541 bytes
2541 bytes
On Tue, 21 Jun 2016 21:09:23 +0200 (CEST), you wrote:
>
> I'm getting this error message daily in my cron job:
>
> etc/cron.daily/logrotate:
> error: error opening /var/log/mail.info.1.gz: No such file or
> directory
> run-parts: /etc/cron.daily/logrotate exited with return code 1
>
> How can I get rid of this error message in my crontab?
>
> Here's my data from rsyslog in logrotate.d directory information:
>
>
> /var/log/syslog
> {
> rotate 3
> daily
> missingok
> notifempty
> delaycompress
> compress
> postrotate
> invoke-rc.d rsyslog rotate > /dev/null
> endscript
> }
> /var/log/mail.info
> /var/log/mail.warn
> /var/log/mail.err
> /var/log/mail.log
> {
> rotate 0
> daily
> missingok
> notifempty
> compress
> delaycompress
> sharedscripts
> postrotate
> invoke-rc.d rsyslog rotate > /dev/null
> endscript
> }
> /var/log/daemon.log
> /var/log/kern.log
> /var/log/auth.log
> /var/log/user.log
> /var/log/lpr.log
> /var/log/cron.log
> /var/log/debug
> /var/log/messages
> {
> rotate 1
> daily
> missingok
> notifempty
> compress
> delaycompress
> sharedscripts
> postrotate
> invoke-rc.d rsyslog rotate > /dev/null
> endscript
One more piece of information. I also have this in my crontab:
0 5 * * * cd /var/log/ && find . -name '*.gz' -delete && find . -
name '*.1' -delete
If I added &> /dev/null at the end would this get rid of my errors?
Technical Details
Message-ID:
<20b4d4ad467051a799bd1667eb6ae5dd@remailer.privacy.at>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!apf1.newsdeef.eu!not-for-mailReferences:
<d94f3ad6159c562f0b67f2ccf0be8f90@anemone.mooo.com>Show Full Headers
Complete Article Headers
Message-ID: <20b4d4ad467051a799bd1667eb6ae5dd@remailer.privacy.at> Subject: Re: Cron Error with Mail.info Date: Tue, 21 Jun 2016 20:52:39 +0000 From: "Anonymous Remailer (austria)" <mixmaster@remailer.privacy.at> References: <d94f3ad6159c562f0b67f2ccf0be8f90@anemone.mooo.com> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!apf1.newsdeef.eu!not-for-mail Comments: This message did not originate from the Sender address above. It was remailed automatically by anonymizing remailer software. Please report problems or inappropriate use to the remailer administrator at <abuse@remailer.privacy.at>. Newsgroups: alt.privacy.anon-server Injection-Info: mail2news.mixmin.net; mail-complaints-to=abuse@mixmin.net