Last change
on this file since 31303 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:
355 bytes
|
Line | |
---|
1 | #!/bin/bash
|
---|
2 |
|
---|
3 | for 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 ""
|
---|
13 | done
|
---|
Note:
See
TracBrowser
for help on using the repository browser.