Added suport for logrotate