source: other-projects/hathitrust/wcsa/extracted-features-solr/trunk/gslis-cluster/SCRIPTS/remote-mongodb-stop-configservers.sh@ 31302

Last change on this file since 31302 was 31302, checked in by davidb, 4 years ago

Initial commit of scripts, after some testing, and subsequent changes to the monogodb setup file

  • Property svn:executable set to *
File size: 254 bytes
Line 
1#!/bin/bash
2
3for h in $MONGODB_CONFIG_HOSTS ; do
4 echo "*"
5 echo "* Stopping MongoDB Config Server on $h:27019"
6 echo "*"
7 ssh $h "mongo --host localhost --port 27019 -eval \"db.getSiblingDB('admin').shutdownServer()\""
8 echo "*****"
9 echo ""
10done
Note: See TracBrowser for help on using the repository browser.