Added logrotate logic
Updated init.d.