#!/bin/bash
+##############################################################################
+# Copyright (c) 2015 Huawei Technologies Co.,Ltd and others.
+#
+# All rights reserved. This program and the accompanying materials
+# are made available under the terms of the Apache License, Version 2.0
+# which accompanies this distribution, and is available at
+# http://www.apache.org/licenses/LICENSE-2.0
+##############################################################################
SERVER=$2
PORT=$3
then
vstf-manager start
else
- vstf-manager start --monitor ${SERVER} --port ${PORT}
+ if [ "${PORT}x" == "x" ]; then
+ vstf-manager start --monitor ${SERVER}
+ else
+ vstf-manager start --monitor ${SERVER} --port ${PORT}
+ fi
fi
elif [ $1 == "agent" ];then
vstf-manager stop