updated init script with log rotation