root/other-projects/hathitrust/wcsa/extracted-features-solr/trunk/gslis-cluster/SCRIPTS/remote-mongodb-stop-routerservers.sh @ 31303

Revision 31303, 355 bytes (checked in by davidb, 3 years ago)

Adding in support to start and stop router server

  • Property svn:executable set to *
Line 
1#!/bin/bash
2
3for h in $MONGODB_CONFIG_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#  ssh $h "mongod --dbdir $MONGODB_DBDIR/config-metadata --shutdown"
10
11  echo "*****"
12  echo ""
13done
Note: See TracBrowser for help on using the browser.