diff --git a/bin/start.sh b/bin/start.sh old mode 100644 new mode 100755 index 4ddb37b2b9c..5f352fbb074 --- a/bin/start.sh +++ b/bin/start.sh @@ -1 +1,7 @@ -nohup ./vtgate --topo_implementation etcd2 --topo_global_server_address http://preglo151.etcd.jddb.com:4001 --topo_global_root /vt/global --log_dir /export/data/mysql/tmp --redact-debug-ui-queries --port 15009 --grpc_port 15999 --grpc_max_message_size 67108864 --mysql_server_port 3359 --service_map grpc-vtgateservice --cells_to_watch zyx151a --tablet_types_to_wait MASTER,REPLICA --mysql_auth_server_config_file /etc/config/acl/user2.json --cell zyx151a > /dev/null & \ No newline at end of file +LOGS_DIR="/export/log/vtgate" + +if [ ! -d $LOGS_DIR ]; then + mkdir -p $LOGS_DIR +fi + +nohup ./vtgate --topo_implementation etcd2 --topo_global_server_address http://preglo151.etcd.jddb.com:4001 --topo_global_root /vt/global --log_dir /export/log/vtgate/tmp --redact-debug-ui-queries --port 15009 --grpc_port 15999 --grpc_max_message_size 67108864 --mysql_server_port 3359 --service_map grpc-vtgateservice --cells_to_watch zyx151a --tablet_types_to_wait MASTER,REPLICA --mysql_auth_server_config_file /etc/config/acl/user2.json --cell zyx151a > /export/log/vtgate/vtgate_console.log 2>&1 & \ No newline at end of file