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

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

Final part of the mongodb shard puzzle -- router servers

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