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'm using the @reboot option as a root cron to update MongoDB when we do a reboot of a EC2 instance.

The problem I have is MongoDB isn't loaded at the point the cron runs the script.

Where is the best place to run a post MongoDB start on server startup?

share|improve this question

In the end I used the upstart /etc/init/mongodb.conf file and it worked well.

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.