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

Last change on this file was 31303, checked in by davidb, 7 years ago

Adding in support to start and stop router server

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