restarting logrotate.d
Hi,
I've added an entry into /etc/logrotate.d/syslog and am wondering if i have to restart logrotate.d or any daemons (syslog?) for the log rotation to take effect? If i do have to restart logrotate.d what is the syntax? My entry is below. Do I need to add any addtional scripts anywhere else? It's a redhat 7.2 server. Thanks. /var/log/kernel { monthly rotate 12 postrotate /usr/bin/killall -HUP syslogd endscript } |
Log rotation is done from inside the cron daemon, so you don't need to do any more. It will read your changes when the commands are activated.
The cron files are in /etc/crond.~ directories... |
All times are GMT -5. The time now is 01:05 AM. |