Another round of fixing init.d script