updated to use upstart for ubuntu