Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have an Upstart job that must run before a SysV-style init.d script runs.
The init.d script is configured to be started in the runlevels 2, 3, 4 and 5 with priority 20.

What can I do to have the Upstart job to start earlier than the init.d script?

share|improve this question
Useful reference: – ML-- Jul 27 '12 at 15:03

Ubuntu has /etc/init/rc.conf starting on all runlevels. It calls /etc/init.d/rc with new runlevel as parameter. I don't think its possible to time your job to start per init.d script, but if you put your job starting on starting rc or startup, it has the best chances.

share|improve this answer
Note that 'start on starting rc' will also start every time you reboot or shut down. 'start on starting rc RUNLEVEL=[2345]' is better. Also start on startup will start without networking, or writable filesystems, and so is probably not what youw ant. – SpamapS Apr 23 '12 at 22:25

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.