Skip to content

Instantly share code, notes, and snippets.

@rajiteh
Created September 26, 2014 03:40
Show Gist options
  • Save rajiteh/18554cd875e64124b4c9 to your computer and use it in GitHub Desktop.
Save rajiteh/18554cd875e64124b4c9 to your computer and use it in GitHub Desktop.
#!/bin/bash
#mongod on terminal with logging to stdout (so dirty it smells)
#alias to 'mongod' for extra points
tail -f /usr/local/var/log/mongodb/mongo.log &;mongod --config /usr/local/etc/mongod.conf;kill $(ps | grep 'tail -f /usr/local/var/log/mongodb/mongo.log' | head -1 | awk '{ print $1 }')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment