Hi Joep,

* Joep van Delft <meka...@xs4all.nl> [2011-07-20 20:40] wrote:
> mongodb uses database /data/db despite database path being configured
> in /etc/mongodb.conf. Obviously, cannot connect to database with
> /usr/bin/mongo.

Yeap, I can see, where the problem is. The init.d script is actually
forcing the dbpath by running mongodb as

/usr/bin/mongod --dbpath /var/lib/mongodb --logpath 
/var/log/mongodb/mongodb.log --config /etc/mongodb.conf run

I have to dig a bit into history, but I think that this was actually
added to prevent basic misconfigurations. This is definitely veritable
in /etc/default. I'll describe it in README or take value from config
file.

> Also, mysteriously, "dpkg -L mongodb" outputs only files in
> /usr/share/doc tree. Let me know if I should file another bug report
> for this (or, in what new way I am being an idiot here).

This is actually correct behavior as the actual server resides in
mongodb-server package:

root@bob:~# dpkg -L mongodb-server | wc -l
27
root@bob:~#

Cheers,

    Antonin



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to