TD-1207
This commit is contained in:
parent
4b720b383a
commit
05ce993084
|
@ -59,7 +59,7 @@ for /f "skip=1" %%A in (
|
|||
'wmic computersystem get caption'
|
||||
) do if not defined fqdn set "fqdn=%%A"
|
||||
|
||||
echo firstEp %fqdn% > %TAOS_CFG%
|
||||
echo firstEp %fqdn%:7100 > %TAOS_CFG%
|
||||
echo fqdn %fqdn% >> %TAOS_CFG%
|
||||
echo serverPort %NODE% >> %TAOS_CFG%
|
||||
echo dataDir %DATA_DIR% >> %TAOS_CFG%
|
||||
|
|
|
@ -40,7 +40,7 @@ if %EXEC_OPTON% == stop (
|
|||
rem wmic process where "name='taosd.exe' and CommandLine like '%%%NODE_NAME%%%'" call terminate > NUL 2>&1
|
||||
|
||||
for /f "tokens=1 skip=1" %%A in (
|
||||
'wmic process where "name='taosd.exe'" get processId '
|
||||
'wmic process where "name='taosd.exe' and CommandLine like '%%%NODE_NAME%%%'" get processId '
|
||||
) do (
|
||||
rem echo taskkill /IM %%A
|
||||
taskkill /IM %%A > NUL 2>&1
|
||||
|
|
|
@ -2,4 +2,5 @@
|
|||
|
||||
rem echo taskkill /F /IM taosd.exe
|
||||
|
||||
wmic process where "name='taosd.exe'" call terminate > NUL 2>&1
|
||||
taskkill /F /IM taosd.exe > NUL 2>&1
|
|
@ -78,8 +78,8 @@ char *simParseHostName(char *varName) {
|
|||
}
|
||||
|
||||
bool simSystemInit() {
|
||||
taosGetFqdn(simHostName);
|
||||
taos_init();
|
||||
taosGetFqdn(simHostName);
|
||||
simInitsimCmdList();
|
||||
memset(simScriptList, 0, sizeof(SScript *) * MAX_MAIN_SCRIPT_NUM);
|
||||
return true;
|
||||
|
|
Loading…
Reference in New Issue