Logrotate causes rsyslogd to stop working after log rotation. Please help!
hello all
I noticed that each time logrotate runs on my RHEL 5.9 Linux server, it causes rsyslogd to stop working and I have to manually restart it. I am trying to configure logrotate that it restarts rsyslog after its completed rotating the logs. I placed the following in my logrotate.conf for one of the logs for testing purposes. Please let me know if this looks correct: Code:
/var/logs/example/example.log { Thanks for all of your help!! |
Not sure if reload rsyslog >/dev/null 2>&1 || true is the correct entry, try the following:
Code:
/var/log/firewall { Testing can be done as follows: - logrotate -d /etc/logrotate.conf to check (no changes are made, just for debugging), - logrotate -fv /etc/logrotate.conf force logrotate to do its job, - Have a look at the log file: /var/lib/logrotate/status (location might be different). Also have a look here: Manage Linux log files with Logrotate |
All times are GMT -5. The time now is 03:03 PM. |