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
|
Rev | Line | |
---|
[31303] | 1 | #!/bin/bash
|
---|
| 2 |
|
---|
[31306] | 3 | for h in $MONGODB_ROUTER_HOSTS ; do
|
---|
[31303] | 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 ""
|
---|
| 11 | done
|
---|
Note:
See
TracBrowser
for help on using the repository browser.