AutoStart MongoDB

404 views
Skip to first unread message

betahost

unread,
May 25, 2010, 4:40:42 PM5/25/10
to mongodb-user
Is there a way to configure MongoDB to start when a server is rebooted?

Marius Rugan

unread,
May 25, 2010, 5:49:43 PM5/25/10
to mongod...@googlegroups.com
What kind of OS are we talking about. if it's winblows i decline responsibility :)


Regards,
Marius Rugan
________________________________

Google Talk: mariusrugan Skype: marius.rugan
Linkedindel.icio.usTwitter


On Tue, May 25, 2010 at 11:40 PM, betahost <brain...@gmail.com> wrote:
Is there a way to configure MongoDB to start when a server is rebooted?

--
You received this message because you are subscribed to the Google Groups "mongodb-user" group.
To post to this group, send email to mongod...@googlegroups.com.
To unsubscribe from this group, send email to mongodb-user...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/mongodb-user?hl=en.


Лоик

unread,
May 25, 2010, 6:51:04 PM5/25/10
to mongod...@googlegroups.com
I think Marius meant that on any unix like Os, there is a init script available that can be runned on boot. That question shouldn't even be asked :)
On the other hand on windows...well have fun!

Loïc

Grig Gheorghiu

unread,
May 25, 2010, 7:09:10 PM5/25/10
to mongod...@googlegroups.com
On Tue, May 25, 2010 at 1:40 PM, betahost <brain...@gmail.com> wrote:
> Is there a way to configure MongoDB to start when a server is rebooted?
>

See http://gist.github.com/409301 for an init.d script for Unix
systems (based on
http://bitbucket.org/bwmcadams/toybox/src/3e84be941408/mongodb.init.rhel).

Andreas Jung

unread,
May 26, 2010, 12:55:46 AM5/26/10
to mongod...@googlegroups.com
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

betahost wrote:
> Is there a way to configure MongoDB to start when a server is rebooted?
>

You can use the @reboot directive of cron. We are using this to start
user specific daemons in general (and not through init.d).

- -aj
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkv8qdEACgkQCJIWIbr9KYykOwCg4GHxmjTCznDGnluKDDjtUhZN
xHQAoL3gbaB+NMl9w+4fr4bf4u1FOMb2
=zEpp
-----END PGP SIGNATURE-----

lists.vcf

Richard Kreuter

unread,
May 27, 2010, 11:22:46 AM5/27/10
to mongod...@googlegroups.com
betahost writes:
> Is there a way to configure MongoDB to start when a server is rebooted?

10gen's .deb and .rpm packages install init scripts (sysv or upstart
style, as appripriate) that do this on Debian, Ubuntu, Fedora, and
CentOS. These could probably be modified for other similar Unices.

For Mac OS X, people have reported that launchctl configurations like
the following ought to work:

http://github.com/AndreiRailean/MongoDB-OSX-Launchctl/blob/master/org.mongo.mongod.plist

For Windows, we have this documentation:

http://www.mongodb.org/display/DOCS/Windows+Service

(I haven't personally tested either the Mac OS X or Windows instructions.)

Regards,
Richard

Reply all
Reply to author
Forward
0 new messages