Mongodb is started as root in the init-script start-stop-daemon --background --start --user ${MONGODB_USER} --pidfile \ should be: start-stop-daemon --background --start --chuid ${MONGODB_USER} --pidfile \ Reproducible: Always Steps to Reproduce:
When changing this we probably need to help users (or at least make them aware) change ownership of the data files as well?
$ start-stop-daemon --help|grep chuid -c, --chuid <arg> deprecated, use --user
not with current stable baselayout: # start-stop-daemon --help|grep chuid -c|--chuid <name|uid[:group|gid]> # start-stop-daemon --version start-stop-daemon 1.13.11+gentoo
Hi Roland, We fixed the init script in tree, please give it a try ! Thanks for reporting this bug. Regards +*mongodb-1.8.1 (13 Apr 2011) +*mongodb-1.6.5 (13 Apr 2011) + + 13 Apr 2011; Ultrabug <ultrabug@gentoo.org> -mongodb-1.2.4.ebuild, + -files/mongodb-1.2-modify-post-strip.patch, + -files/mongodb-1.2-modify-testing.patch, -mongodb-1.4.4.ebuild, + -files/mongodb-1.4-modify-post-strip.patch, + -files/mongodb-1.4-modify-testing.patch, -mongodb-1.5.5.ebuild, + -mongodb-1.6.0.ebuild, -files/mongodb-1.6.0-fix-scons.patch, + +mongodb-1.6.5.ebuild, +files/mongodb-1.6-fix-scons.patch, + +mongodb-1.8.1.ebuild, +files/mongodb-1.8-fix-scons.patch, + +files/mongos.confd, +files/mongos.initd, files/mongodb.confd, + files/mongodb.initd: + Mongodb rework/bump. Fix bugs #329167, #334081, #337085, #337593, #337973, + #338039, #340032, #356731. Many thanks to Johan Bergström for his help and + testing. Drop old versions. +