How can I make sure one Upstart job stops before another Upstart job stops?

You can use these options within job A:

  • Stop before depended-upon service

    stop on stopping B
    
  • Start after depended-upon service

    start on started B
    

Reference: http://upstart.ubuntu.com/cookbook/#stop-on