Second try at init.d script. Still a bit hazy regarding the voodoo on line 25. Must RTFM.