Skip to content

Instantly share code, notes, and snippets.

@victorcampos
Created June 29, 2011 02:19
Show Gist options
  • Save victorcampos/1052821 to your computer and use it in GitHub Desktop.
Save victorcampos/1052821 to your computer and use it in GitHub Desktop.
Startup and shutdown scripts for MongoDB 1.8.2 (setting journaling, dbpath, daemonize, logging and rest interface)
#!/bin/bash
kill -2 `cat /data/mongod.lock`
#!/bin/sh
./mongod --dbpath /data/ --fork --logpath /var/log/mongodb/mongodb.log --logappend --rest --journal
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment