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

Asked by Maxim Levitsky

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:
Last query:
Last reply:
Revision history for this message
Best Scott James Remnant (Canonical) (canonical-scott) said :
#1

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

  start on starting gdm

gdm will wait until your job is started

Revision history for this message
Maxim Levitsky (maximlevitsky) said :
#2

Thanks Scott James Remnant, that solved my question.

Revision history for this message
Maxim Levitsky (maximlevitsky) said :
#3

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

Thanks!