1
0
mirror of https://github.com/schollz/cowyo.git synced 2023-08-10 21:13:00 +03:00
cowyo/vendor/gopkg.in/mgo.v2/harness/daemons/db1/run

16 lines
192 B
Plaintext
Raw Normal View History

2017-10-03 21:43:55 +03:00
#!/bin/sh
. ../.env
if [ x$NOIPV6 = x1 ]; then
BINDIP="127.0.0.1"
else
BINDIP="127.0.0.1,::1"
fi
exec mongod $COMMONDOPTSNOIP \
--shardsvr \
--bind_ip=$BINDIP \
--port 40001 \
--ipv6