Updated the upstart script

Was not able to fully test it.