Wednesday, November 4, 2009

Implement logrotate on Linux

Create files in
/etc/logrotate.d

/var/log/app_name/*log {
missingok    notifempty    nocompress    sharedscripts    postrotate        /bin/kill -HUP `cat /var/run/syslogd.pid 2> /dev/null` 2> /dev/null || true    endscript}EOF
Need to check on -


  1. What else is needed in this regard, or is this self sufficient. 


No comments:

Post a Comment