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:
428 bytes
|
Rev | Line | |
---|
[31303] | 1 | #!/bin/bash
|
---|
| 2 |
|
---|
| 3 | configdb_arg=""
|
---|
| 4 |
|
---|
| 5 | for h in $MONGODB_CONFIG_HOSTS ; do
|
---|
| 6 | if [ "x$configdb_arg" != "x" ] ; then
|
---|
| 7 | configdb_arg="$configdb_arg,"
|
---|
| 8 | fi
|
---|
| 9 |
|
---|
| 10 | configdb_arg="$configdb_arg$h:$MONGODB_CONFIG_PORT"
|
---|
| 11 | done
|
---|
| 12 |
|
---|
| 13 |
|
---|
| 14 | for h in $MONGODB_ROUTER_HOSTS ; do
|
---|
| 15 | echo "* Starting MongoDB Router Server on $h:$MONGODB_ROUTER_PORT"
|
---|
| 16 |
|
---|
| 17 | echo ssh $h "mongos --configdb $configdb_arg --port $MONGODB_ROUTER_PORT > mongodb-output-$h-router.log &"
|
---|
| 18 |
|
---|
| 19 | done
|
---|
Note:
See
TracBrowser
for help on using the repository browser.