LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   restarting logrotate.d (https://www.linuxquestions.org/questions/linux-general-1/restarting-logrotate-d-44371/)

cuss 02-06-2003 03:37 PM

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
}

peter_robb 02-06-2003 04:01 PM

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.