Skip to content

Commit

Permalink
[IOTDB-3219] fix stop-server on windows (#5936)
Browse files Browse the repository at this point in the history
* fix stop-server on windows

* fix stop-server.bat on cluster-confignode
  • Loading branch information
xiaoyekanren committed May 17, 2022
1 parent c0529f5 commit 7042883
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion confignode/src/assembly/resources/sbin/stop-confignode.bat
Expand Up @@ -22,7 +22,7 @@
set current_dir=%~dp0
set superior_dir=%current_dir%\..\

for /f "eol=; tokens=2,2 delims==" %%i in ('findstr /i "rpc_port"
for /f "eol=; tokens=2,2 delims==" %%i in ('findstr /i "^rpc_port"
%superior_dir%\conf\iotdb-confignode.properties') do (
set rpc_port=%%i
)
Expand Down
2 changes: 1 addition & 1 deletion server/src/assembly/resources/sbin/stop-server.bat
Expand Up @@ -22,7 +22,7 @@
set current_dir=%~dp0
set superior_dir=%current_dir%\..\

for /f "eol=; tokens=2,2 delims==" %%i in ('findstr /i "rpc_port"
for /f "eol=; tokens=2,2 delims==" %%i in ('findstr /i "^rpc_port"
%superior_dir%\conf\iotdb-engine.properties') do (
set rpc_port=%%i
)
Expand Down

0 comments on commit 7042883

Please sign in to comment.