0

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?

agentofuser
  • 557
  • 3
  • 6
  • 14

2 Answers2

0

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

Vitaliy
  • 512
  • 3
  • 9
0

rc-update add SERVICE default

or

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