Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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 
collapsefs
  start on: unknown job umountfs

Is there any way to do this?

share|improve this question
add comment

1 Answer 1

up vote 5 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
add comment

Your Answer

 
discard

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.