Re: (RHE4) Logrotate Not Restarting Syslog
- From: Sean O Sullivan <seanos@xxxxxxxxxx>
- Date: Mon, 30 Jan 2006 19:31:08 +0000
Bohmer, Andre ten wrote:
If I run the postrotate command by itself, it works. However, it does notMaybe, but I had something similar which was caused because the /tmp partition mounted with noexec.
work when I force the logrotate, as seen below:
[root@host log]# logrotate -f /etc/logrotate.d/syslog error: error running shared postrotate script for /var/log/messages /var/log/secure /var/log/maillog /var/log/spooler /var/log/boot.log /var/log/cron
Does anyone know why this is not working?
This is common - bugzilla.redhat.com has fair bit of information in regards to it.
Easiest fix is, edit /etc/cron.daily/logrotate so that it contains : export TMPDIR=/var/run before the /usr/sbin/logrotate line.
The only issue with this solution is - if you ever update logrotate this config file will have to be re-edited
Regards,
Sean
-- redhat-list mailing list unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe https://www.redhat.com/mailman/listinfo/redhat-list
- References:
- RE: (RHE4) Logrotate Not Restarting Syslog
- From: Bohmer, Andre ten
- RE: (RHE4) Logrotate Not Restarting Syslog
- Prev by Date: RE: (RHE4) Logrotate Not Restarting Syslog
- Next by Date: /etc/issue
- Previous by thread: RE: (RHE4) Logrotate Not Restarting Syslog
- Next by thread: RE: (RHE4) Logrotate Not Restarting Syslog
- Index(es):