implemented init.d script