Fixed the init.d script to actually use all the commands