Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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

2 Answers 2

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

or

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

 
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.