🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: alt.privacy.anon-server
Article #283184

Re: Cron Error with Mail.info

#283184
From: Zax
Date: Wed, 22 Jun 2016 13:55
77 lines
3198 bytes
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

On Tue, 21 Jun 2016 21:09:23 +0200 (CEST), Jeremy Bentham wrote in
Message-Id: <d94f3ad6159c562f0b67f2ccf0be8f90@anemone.mooo.com>:

> 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/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
> }

You have a couple of conflicting statements in here that might be
causing problems.  Try:

/var/log/mail.info
/var/log/mail.warn
/var/log/mail.err
/var/log/mail.log
{
        rotate 0
        daily
        missingok
        notifempty
        sharedscripts
        postrotate
                invoke-rc.d rsyslog rotate > /dev/null
        endscript
}

You can test this by using logrotate --debug <filename>.  No changes
will be written but it will output a verbose log of what's happening.

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQIcBAEBCAAGBQJXapi6AAoJEC3jHKG+PvqnvkkQAIkW31JDWP7lZBnR2ORKPUV2
fGBLOWTtxFvSa5jKWoDcJxCpZ8imEBOfuMnHJOKhpD/6lh/kJYrd4P3SWy6lxeWz
Ukk1qEZO6CJwTHvVkVNCdbRq09q33iKfhoMFMpIhEfbjLtZ1+KJZxokBGFifV1oq
W8CIVpiR+DTROUs7g2WdNwrKCTM7oFz2rGRbko6FAyfjGZhgqp1s+EYoyQzy4jYh
VvcgH5DXbtomhzvovyq43NZ4LpV+1lHXrqw839eSuP/I5kSAek1miQTDIg6Ru14n
EIKHWvYVIRq7SXyVHf8Qb5JYsjMNOHFPlOF3ObJkWZnnd3KeC/n7ld+dBRtCaoYq
ziFgm2Pq27RiwQRwB9aEPU4lA9oDqbJ7VK8qjEMv20aOtcVgVHwmLipfZkKUVn0z
cAe3FQqnlDD7cJJnRa7FEe3BgDP06pkoPsCV6XfDfETB0SQd8C+52k3GHWNSauPF
7VlJOHqy8+UMv7RqzaIA8yGIiamctGZfdTFd7D+T8iGIad/66UIuTkn8KxIOrEBP
XvrQJjzl0AaIeL0DaOGlbN5wlAdp0+9xqZ3DIb1jh3gkRmRx5YV04CdSUpn63odk
+9erDZg9zp9INCgBkhtN5GtYT/XJl4DvZgO2Qz6Fv0XurjBmUSLExHzVy9jmSfGj
3gW6H0Q3/OZ3XEHnR6DP
=67NG
-----END PGP SIGNATURE-----

-- 
pub   1024D/228761E7 2003-06-04 Steven Crook <steve@mixmin.net>
      Key fingerprint = 1CD9 95E1 E9CE 80D6 C885  B7EB B471 80D5 2287 61E7
sub  4096R/BE3EFAA7  created: 2014-11-14  expires: 2016-11-13  usage: S
Technical Details
Message-ID: <slrnnml65q.1iv.admin@fleegle.mixmin.net>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!apf1.newsdeef.eu!news.usenet.farm!..!..!not-for-mail
References: <d94f3ad6159c562f0b67f2ccf0be8f90@anemone.mooo.com>

Show Full Headers
Complete Article Headers
Message-ID: <slrnnml65q.1iv.admin@fleegle.mixmin.net>
Subject: Re: Cron Error with Mail.info
Date: Wed, 22 Jun 2016 13:55:06 +0000
From: Zax <admin@mixmin.net>
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!news.usenet.farm!..!..!not-for-mail
Newsgroups: alt.privacy.anon-server
Organization: Mixmin
Injection-Date: Wed, 22 Jun 2016 13:55:06 -0000 (UTC)
Injection-Info: news.mixmin.net; posting-host="87cbab51554e0fd57f65de873869b871272ffe1f";
User-Agent: slrn/pre1.0.3-10 (Linux)
Lines: 76