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 want to make an Upstart job start immediately before a System V job (/etc/rc0.d/S40umountfs). I've tried specifying:

start on starting umountfs

but Upstart doesn't recognize the name of the script:

$ initctl check-config 
  start on: unknown job umountfs

Is there any way to do this?

share|improve this question
up vote 6 down vote accepted

SysV init scripts are run by the rc job (/etc/init/rc.conf) which just runs /etc/init.d/rc $RUNLEVEL.

So there's only an upstart event for the whole runlevel, but not for single init scripts.

You can create an event using initctl emit umountfs.

See Upstart Intro, Cookbook and Best Practices for some tips on using Upstart.

share|improve this answer

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.