Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

1 Answer 1

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

 
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.