Skip to content

Instantly share code, notes, and snippets.

@aaronjgreenberg
Created February 2, 2013 02:33
Show Gist options
  • Save aaronjgreenberg/4695823 to your computer and use it in GitHub Desktop.
Save aaronjgreenberg/4695823 to your computer and use it in GitHub Desktop.
Shell command to stop a `mongod` process.
MONGO_PID=`ps aux | grep mongo | awk '{print $2}' | head -n 1`
# SIGTERM the mongod process
kill -15 $MONGO_PID
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment