Is it possible to create a upstart job that would run _before_ specific job

Asked by Maxim Levitsky on 2009-09-27

I have my own script that rebuilds the nvidia kernel module.
It is much more robust, it checks against all kinds of incompatibilities, etc.

I would like to make it an upstart job, however I would need to modify one of the upstart config files, like 'gdm.conf' to depend on my script, but I don't like that.

I want to write in my script, that it must be executed before the gdm.conf script.

Is this possible?

Question information

Language:
English Edit question
Status:
Solved
For:
upstart Edit question
Assignee:
No assignee Edit question
Solved by:
Scott James Remnant (Canonical)
Solved:
2009-09-30
Last query:
2009-09-30
Last reply:
2009-09-30

You can use the "starting" event for this, e.g.:

  start on starting gdm

gdm will wait until your job is started

Maxim Levitsky (maximlevitsky) said : #2

Thanks Scott James Remnant, that solved my question.

Maxim Levitsky (maximlevitsky) said : #3

Indeed, this is it, so simple, how didn't I think of it before...

Thanks!