Emerged dev-db/mongodb (2.4.5@08/15/2013) and services when executed with /etc/init.d/mongodb start fail with "* ERROR: cannot start mongos as net.eth0 would not start". By default it requires net dependency which makes little sense. This can be fixed by including rc_need="!net" in /etc/conf.d/mongodb. --- Relevant conversation from #gentoo on freenode IRC. 14:59 < _br_ > I don't have a eth0 here. I just want to run it on localhost. Is there a standard gentoo way to force mongo to not start by default. on all interfaces? * ERROR: cannot start mongos as net.eth0 would not start 14:59 <+iamben> D-Chymera1: do you know which wifi driver your card needs? did you manual config, or genkernel? 15:00 < iamben+> _br_: you could put rc_need="!net" in /etc/conf.d/mongos 15:00 < dwfreed > _br_: change /etc/init.d/mongos to 'use net' rather than 'need net', and then file a bug against mongodb in bugs.gentoo.org to have. the dev responsible fix that 15:00 < dwfreed> or that's better 15:00 < _br_ > iamben: dwfreed: Thank you, I'll try that. Apprecate the help :) 15:01 < dwfreed> use iamben's suggestion to get mongos to work, and then file the bug I suggested :0 15:01 < dwfreed> s/0/)/ 15:01 < _br_ > will do ! :) 15:01 <+iamben> yeah it probably should not have a net dep at all, unless it actually needs to bind to a specific interface 15:01 < dwfreed> a 'use net' dep wouldn't be bad, though 15:02 < dwfreed> iamben: I always forget that you can override depend() in /etc/conf.d files, even though I do it all the time for my net configuration, heh
Thanks Bjoern, you're right, we don't need to be so strict. +*mongodb-2.4.6_rc1 (16 Aug 2013) + + 16 Aug 2013; Ultrabug <ultrabug@gentoo.org> +mongodb-2.4.6_rc1.ebuild, + +files/mongodb.initd-r1, +files/mongos.initd-r1: + fix v8 dep thx to Alex Brandt wrt #471582, fix #481172 wrt init scripts thx + to Bjoern Rennhak, version bump +