Upstart: defining service dependencies / priorities

view story

http://serverfault.com – I am working on an app which runs several services / daemons using upstart. These should start on system startup, but only after the DB server (in our case mongo) was started. I am looking for the right upstart configuration to cause a service to either cause mongo to be started when it is started or only start after mongo has started. I do not want to modify any upstart configuration which is not a part of our own software (e.g. modify the mongo upstart config). One direction was to add to our code something like: start on started mongod and runlevel [2345] Or something similar, but I (HowTos)