Added logrotate support