Two days ago my system temporarily run out of RAM. After hard resett all was well. Exept, I now get a warning (mail to root, forwarded to user):
Quoteexim paniclog /var/log/exim4/paniclog on lintower.picasso has non-zero size, mail system might be broken. The last 10 lines are quoted below.
2014-01-12 19:26:33 daemon: fork of queue-runner process failed: Cannot allocate memory
I assume currently there is no danger anymore as my E-mail system runs as it should. So the question is: Does anybody know how to get rid of this message *without* breaking something. May I simply delete /var/log/exim4/paniclog? Or do I need to create a zero size file via "touch /var/log/exim4/paniclog" afterwards?
( Aunt Google does not know ;-) )
Quote from: michaa7 on 2014/01/14, 13:14:59
May I simply delete /var/log/exim4/paniclog? Or do I need to create a zero size file via "touch /var/log/exim4/paniclog" afterwards?
dont know whether these two alternatives make a difference, but paniclog should always be empty
cf. https://wiki.debian.org/PkgExim4UserFAQ or
http://www.exim.org/exim-html-current/doc/html/spec_html/ch-log_files.html
otherwise you get mail.
(did you expect to get mail from exim? ;-)
i would simply empty it.
greetings, c
Quote from: cas on 2014/01/16, 00:10:12
...(did you expect to get mail from exim? ;-)
Yes, seriously. Because I foward, as mentioned above, all mails to root to the user. So reciving that warning was inteded. But I want to stop the *daily* warning after noticing it.
By default the paniclog empties itself being logrotated. Which happens when the file amount to 10 MB ;-) .
Now, you may logrotate it manually issuing:
logrotate -f -v /etc/logrotate.d/exim4-paniclog
Unfortunately there *was* a bug preventing logrotate working as expected when called with the "-f" option. But the maintainer responded quickly to my bugrepot and thus logrotes v3.8.7 (debian/incoming) soved the problem
Quote
i would simply empty it.
This would work, but I woudl loose this entry in the log. No big deal, but I wanted to preserve a complete log.