[MongoDB]: shutdown script
[root@dbversity bin]$ cat shutdown_script.sh #!/bin/bash BIN=/tmp/mongodb/bin DB=admin HOST=`hostname` UN=adm PW=pwd #PW=`cat /root/.pwd.txt` cd $BIN MONGOPID=`ps -ef | egrep ‘mongod|mongos’ | grep -v egrep | awk ‘{print $2}’` if [ -z $MONGOPID ]; then echo “There are no Mongo processes are…