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?

link|improve this question

67% accept rate
feedback

2 Answers

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

link|improve this answer
feedback

rc-update add SERVICE default

or

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

link|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
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.