Tuesday, May 24, 2011

log rotate.conf

/var/log/process-name.log {
rotate 12
monthly
errors root@localhost
missingok
postrotate
/usr/bin/killall -HUP process-name 2> /dev/null || true
endscript
}

No comments:

Post a Comment