Created
February 2, 2013 02:33
-
-
Save aaronjgreenberg/4695823 to your computer and use it in GitHub Desktop.
Shell command to stop a `mongod` process.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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