update init.d script behavior (#47)