Update license to Apache 2.0 & update init.d script