Init script fixes

Ubuntu's default $SHELL (dash) hates this init script. There are calls to success and failure functions, which don't exist in the lsb init library.

This merge resolves this for the time being, although this init script is pretty insane and needs refactoring badly