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.
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).
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-----
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