logging and init.d script