init.d script runs correctly