Ubuntu Packaging and Upstart

15 views
Skip to first unread message

Adam N

unread,
Dec 11, 2009, 3:55:11 PM12/11/09
to mongodb-dev
I'm working on getting a package for mongodb on Ubuntu 9.10. It
doesn't seem like the current mongodb git repository has a good spot
for such things (i.e. upstart conf files, etc...). Does anybody have
thoughts on:

1. Where in mongodb an ubuntu conf file should go? In debian?
2. Should mongodb standardize on /var/lib/mongodb/ for data
storage ... or /data/ ... or /data/mongodb/ ?
3. Is there a standard location for global configurations (i.e. append-
log, etc...)?

Thanks,
Adam

------- Here is a sample /etc/init/mongodb.conf for upstart systems
like Ubuntu 9.10 --------

# /etc/init/mongodb.conf
pre-start script
mkdir -p /var/mongodb/
mkdir -p /var/log/mongodb/
end script

start on runlevel [345]

exec /usr/local/mongodb/bin/mongod --logappend --logpath /var/log/
mongodb/mongod.log --dbpath /var/mongodb/

respawn

Eliot Horowitz

unread,
Dec 11, 2009, 4:03:59 PM12/11/09
to mongo...@googlegroups.com
probably can live in debian, or debian/ubuntu
wouldn't want another top level directory

i would put wherever ubuntu put other dbs, so var/lib/mongodb makes sense
> --
>
> You received this message because you are subscribed to the Google Groups "mongodb-dev" group.
> To post to this group, send email to mongo...@googlegroups.com.
> To unsubscribe from this group, send email to mongodb-dev...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/mongodb-dev?hl=en.
>
>
>

Adam N

unread,
Dec 12, 2009, 11:56:17 AM12/12/09
to mongodb-dev
I agree with /var/lib/mongodb but then perhaps the docs should be
updated to be consistent?

http://www.mongodb.org/display/DOCS/Getting+Started#GettingStarted-InstallationLayout

On Dec 11, 4:03 pm, Eliot Horowitz <eliothorow...@gmail.com> wrote:
> probably can live in debian, or debian/ubuntu
> wouldn't want another top level directory
>

Eliot Horowitz

unread,
Dec 12, 2009, 12:16:12 PM12/12/09
to mongo...@googlegroups.com
Well those are generic docs. I don't think we're going to change the
defaults, just a default ubuntu config file
Reply all
Reply to author
Forward
0 new messages