Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

Is there a way to tell upstart to run a job when system is idle?

If not, what is the next best thing - i.e. how to start it very late in the process, when system is reasonably expected to be idle?

share|improve this question

At a first guess you could write a root crontab entry that would check system activity every so often, then initctl emit an event that would start your process. You would probably want to check that the process wasn't already running before launching. You could handle that in either the crontab or the upstart job.

Kind of a hack, but it would probably work.

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.