Add support for docker where upstart doesn't work.