Server Fault is a question and answer site for system and network administrators. 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 have a Gentoo box on Linode and couldn't get to install MongoDB thorough Portage, so I'm running the static binary I downloaded from the website.

How do I make it run as a service, and how do I add it to the auto-start list so it comes back up when the system is rebooted?

share|improve this question
up vote 0 down vote accepted

I haven't used Gentoo for a while, but I would just copy one of the simpler scripts from /etc/init.d and adjust it to run MongoDB. That should be a trivial task

share|improve this answer

rc-update add SERVICE default


echo "/opt/foo/service" >> /etc/conf.d/local.start

share|improve this answer
My problem was that I didn't have the init script to run rc-update against. – obvio171 May 21 '10 at 15:33

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.