Commit 3d5072c 1 parent 859083c commit 3d5072c Copy full SHA for 3d5072c
File tree 15 files changed +533
-0
lines changed
15 files changed +533
-0
lines changed Original file line number Diff line number Diff line change
1
+ save common dynamic lib
Original file line number Diff line number Diff line change
1
+ #! /bin/sh
2
+ cd TARS_PATH/tarsnode/util
3
+
4
+ bin=" TARS_PATH/tarsnode/bin/tarsnode"
5
+
6
+ $bin --monitor --config=TARS_PATH/tarsnode/conf/tars.tarsnode.config.conf
7
+
8
+ ex=$?
9
+
10
+ if [ $ex -ne 0 ]; then
11
+ # echo "monitor:"$ex", restart tarsnode"
12
+ sh TARS_PATH/tarsnode/util/start.sh
13
+ fi
14
+
Original file line number Diff line number Diff line change
1
+
2
+ @ echo off
3
+ setlocal enabledelayedexpansion
4
+
5
+ @ echo off
6
+ set SERVER_NAME = %1
7
+
8
+ @ echo off
9
+ set PATH = %PATH% ;TARS_PATH\tarsnode\data\lib\;
10
+
11
+ @ echo off
12
+ set COMMAND = %2
13
+
14
+ @ echo off
15
+ if " !COMMAND! " == " stop" (
16
+ @ echo off
17
+ taskkill /f /fi " imagename eq !SERVER_NAME! .exe" /im !SERVER_NAME! .exe /t
18
+ )
19
+
20
+ @ echo off
21
+ if " !COMMAND! " == " start" (
22
+ @ echo off
23
+ taskkill /f /fi " imagename eq !SERVER_NAME! .exe" /im !SERVER_NAME! .exe /t
24
+ REM taskkill /im !SERVER_NAME!.exe /t /f
25
+
26
+ set CONFIG = TARS_PATH\tarsnode\data\tars.!SERVER_NAME! \conf\tars.!SERVER_NAME! .config.conf
27
+
28
+ if not exist !CONFIG! (
29
+
30
+ start /b TARS_PATH\!SERVER_NAME! \bin\!SERVER_NAME! .exe --config=TARS_PATH\!SERVER_NAME! \conf\tars.!SERVER_NAME! .config.conf > nul
31
+
32
+ ) else (
33
+
34
+ echo " start !SERVER_NAME! .exe --config=!CONFIG! "
35
+ start /b TARS_PATH\!SERVER_NAME! \bin\!SERVER_NAME! .exe --config=!CONFIG! > nul
36
+ )
37
+
38
+ )
39
+
40
+ ENDLOCAL
Original file line number Diff line number Diff line change
1
+
2
+ @ echo off
3
+ setlocal enabledelayedexpansion
4
+
5
+ @ echo off
6
+ set SERVER_NAME = %1
7
+
8
+ @ echo off
9
+ set PATH = %PATH% ;TARS_PATH\tarsnode\data\lib\;
10
+
11
+ @ echo off
12
+ set COMMAND = %2
13
+
14
+ @ echo off
15
+ if " !COMMAND! " == " stop" (
16
+ @ echo off
17
+ taskkill /f /fi " imagename eq !SERVER_NAME! .exe" /im !SERVER_NAME! .exe /t
18
+ )
19
+
20
+ @ echo off
21
+ if " !COMMAND! " == " start" (
22
+ @ echo off
23
+ taskkill /f /fi " imagename eq !SERVER_NAME! .exe" /im !SERVER_NAME! .exe /t
24
+ REM taskkill /im !SERVER_NAME!.exe /t /f
25
+
26
+ set CONFIG = TARS_PATH\tarsnode\data\tars.!SERVER_NAME! \conf\tars.!SERVER_NAME! .config.conf
27
+
28
+ if not exist !CONFIG! (
29
+
30
+ start /b TARS_PATH\!SERVER_NAME! \bin\!SERVER_NAME! .exe --config=TARS_PATH\!SERVER_NAME! \conf\tars.!SERVER_NAME! .config.conf > nul
31
+
32
+ ) else (
33
+
34
+ echo " start !SERVER_NAME! .exe --config=!CONFIG! "
35
+ start /b TARS_PATH\!SERVER_NAME! \bin\!SERVER_NAME! .exe --config=!CONFIG! > nul
36
+ )
37
+
38
+ )
39
+
40
+ ENDLOCAL
Original file line number Diff line number Diff line change
1
+
2
+ @ echo off
3
+ setlocal enabledelayedexpansion
4
+
5
+ @ echo off
6
+ set PATH = %PATH% ;TARS_PATH\tarsnode\data\lib\;
7
+
8
+ @ echo off
9
+ set SERVER_NAME = %1
10
+
11
+ @ echo off
12
+ set COMMAND = %2
13
+
14
+ @ echo off
15
+ if " !COMMAND! " == " stop" (
16
+ @ echo off
17
+ taskkill /f /fi " imagename eq !SERVER_NAME! .exe" /im !SERVER_NAME! .exe /t
18
+ )
19
+
20
+ @ echo off
21
+ if " !COMMAND! " == " start" (
22
+ @ echo off
23
+ taskkill /f /fi " imagename eq !SERVER_NAME! .exe" /im !SERVER_NAME! .exe /t
24
+ REM taskkill /im !SERVER_NAME!.exe /t /f
25
+
26
+ set CONFIG = TARS_PATH\tarsnode\data\tars.!SERVER_NAME! \conf\tars.!SERVER_NAME! .config.conf
27
+
28
+ if not exist !CONFIG! (
29
+
30
+ start /b TARS_PATH\!SERVER_NAME! \bin\!SERVER_NAME! .exe --config=TARS_PATH\!SERVER_NAME! \conf\tars.!SERVER_NAME! .config.conf > nul
31
+
32
+ ) else (
33
+
34
+ echo " start !SERVER_NAME! .exe --config=!CONFIG! "
35
+ start /b TARS_PATH\!SERVER_NAME! \bin\!SERVER_NAME! .exe --config=!CONFIG! > nul
36
+ )
37
+
38
+ )
39
+
40
+ ENDLOCAL
Original file line number Diff line number Diff line change
1
+
2
+ @ echo off
3
+ setlocal enabledelayedexpansion
4
+
5
+ @ echo off
6
+ set PATH = %PATH% ;TARS_PATH\tarsnode\data\lib\;
7
+
8
+ @ echo off
9
+ set SERVER_NAME = %1
10
+
11
+ @ echo off
12
+ set COMMAND = %2
13
+
14
+ @ echo off
15
+ if " !COMMAND! " == " stop" (
16
+ @ echo off
17
+ taskkill /f /fi " imagename eq !SERVER_NAME! .exe" /im !SERVER_NAME! .exe /t
18
+ )
19
+
20
+ @ echo off
21
+ if " !COMMAND! " == " start" (
22
+ @ echo off
23
+ taskkill /f /fi " imagename eq !SERVER_NAME! .exe" /im !SERVER_NAME! .exe /t
24
+ REM taskkill /im !SERVER_NAME!.exe /t /f
25
+
26
+ set CONFIG = TARS_PATH\tarsnode\data\tars.!SERVER_NAME! \conf\tars.!SERVER_NAME! .config.conf
27
+
28
+ if not exist !CONFIG! (
29
+
30
+ start /b TARS_PATH\!SERVER_NAME! \bin\!SERVER_NAME! .exe --config=TARS_PATH\!SERVER_NAME! \conf\tars.!SERVER_NAME! .config.conf > nul
31
+
32
+ ) else (
33
+
34
+ echo " start !SERVER_NAME! .exe --config=!CONFIG! "
35
+ start /b TARS_PATH\!SERVER_NAME! \bin\!SERVER_NAME! .exe --config=!CONFIG! > nul
36
+ )
37
+
38
+ )
39
+
40
+ ENDLOCAL
Original file line number Diff line number Diff line change
1
+
2
+ @ echo off
3
+ call TARS_PATH/tarsnode/bin/tarsnode.exe --monitor --config=TARS_PATH/tarsnode/conf/tars.tarsnode.config.conf
4
+
5
+ @ echo off
6
+ if %errorlevel% NEQ 0 (
7
+ call TARS_PATH/tarsnode/util/start.bat
8
+ )
Original file line number Diff line number Diff line change
1
+
2
+ @ echo off
3
+ setlocal enabledelayedexpansion
4
+
5
+ @ echo off
6
+ set PATH = %PATH% ;TARS_PATH\tarsnode\data\lib\;
7
+
8
+ @ echo off
9
+ set SERVER_NAME = %1
10
+
11
+ @ echo off
12
+ set COMMAND = %2
13
+
14
+ @ echo off
15
+ if " !COMMAND! " == " stop" (
16
+ @ echo off
17
+ taskkill /f /fi " imagename eq !SERVER_NAME! .exe" /im !SERVER_NAME! .exe /t
18
+ )
19
+
20
+ @ echo off
21
+ if " !COMMAND! " == " start" (
22
+ @ echo off
23
+ taskkill /f /fi " imagename eq !SERVER_NAME! .exe" /im !SERVER_NAME! .exe /t
24
+ REM taskkill /im !SERVER_NAME!.exe /t /f
25
+
26
+ set CONFIG = TARS_PATH\tarsnode\data\tars.!SERVER_NAME! \conf\tars.!SERVER_NAME! .config.conf
27
+
28
+ if not exist !CONFIG! (
29
+
30
+ start /b TARS_PATH\!SERVER_NAME! \bin\!SERVER_NAME! .exe --config=TARS_PATH\!SERVER_NAME! \conf\tars.!SERVER_NAME! .config.conf > nul
31
+
32
+ ) else (
33
+
34
+ echo " start !SERVER_NAME! .exe --config=!CONFIG! "
35
+ start /b TARS_PATH\!SERVER_NAME! \bin\!SERVER_NAME! .exe --config=!CONFIG! > nul
36
+ )
37
+
38
+ )
39
+
40
+ ENDLOCAL
Original file line number Diff line number Diff line change
1
+
2
+ @ echo off
3
+ setlocal enabledelayedexpansion
4
+
5
+ @ echo off
6
+ set PATH = %PATH% ;TARS_PATH\tarsnode\data\lib\;
7
+
8
+ @ echo off
9
+ set SERVER_NAME = %1
10
+
11
+ @ echo off
12
+ set COMMAND = %2
13
+
14
+ @ echo off
15
+ if " !COMMAND! " == " stop" (
16
+ @ echo off
17
+ taskkill /f /fi " imagename eq !SERVER_NAME! .exe" /im !SERVER_NAME! .exe /t
18
+ )
19
+
20
+ @ echo off
21
+ if " !COMMAND! " == " start" (
22
+ @ echo off
23
+ taskkill /f /fi " imagename eq !SERVER_NAME! .exe" /im !SERVER_NAME! .exe /t
24
+ REM taskkill /im !SERVER_NAME!.exe /t /f
25
+
26
+ set CONFIG = TARS_PATH\tarsnode\data\tars.!SERVER_NAME! \conf\tars.!SERVER_NAME! .config.conf
27
+
28
+ if not exist !CONFIG! (
29
+
30
+ start /b TARS_PATH\!SERVER_NAME! \bin\!SERVER_NAME! .exe --config=TARS_PATH\!SERVER_NAME! \conf\tars.!SERVER_NAME! .config.conf > nul
31
+
32
+ ) else (
33
+
34
+ echo " start !SERVER_NAME! .exe --config=!CONFIG! "
35
+ start /b TARS_PATH\!SERVER_NAME! \bin\!SERVER_NAME! .exe --config=!CONFIG! > nul
36
+ )
37
+
38
+ )
39
+
40
+ ENDLOCAL
Original file line number Diff line number Diff line change
1
+
2
+ @ echo off
3
+ setlocal enabledelayedexpansion
4
+
5
+ @ echo off
6
+ set PATH = %PATH% ;TARS_PATH\tarsnode\data\lib\;
7
+
8
+ @ echo off
9
+ set SERVER_NAME = %1
10
+
11
+ @ echo off
12
+ set COMMAND = %2
13
+
14
+ @ echo off
15
+ if " !COMMAND! " == " stop" (
16
+ @ echo off
17
+ taskkill /f /fi " imagename eq !SERVER_NAME! .exe" /im !SERVER_NAME! .exe /t
18
+ )
19
+
20
+ @ echo off
21
+ if " !COMMAND! " == " start" (
22
+ @ echo off
23
+ taskkill /f /fi " imagename eq !SERVER_NAME! .exe" /im !SERVER_NAME! .exe /t
24
+ REM taskkill /im !SERVER_NAME!.exe /t /f
25
+
26
+ set CONFIG = TARS_PATH\tarsnode\data\tars.!SERVER_NAME! \conf\tars.!SERVER_NAME! .config.conf
27
+
28
+ if not exist !CONFIG! (
29
+
30
+ start /b TARS_PATH\!SERVER_NAME! \bin\!SERVER_NAME! .exe --config=TARS_PATH\!SERVER_NAME! \conf\tars.!SERVER_NAME! .config.conf > nul
31
+
32
+ ) else (
33
+
34
+ echo " start !SERVER_NAME! .exe --config=!CONFIG! "
35
+ start /b TARS_PATH\!SERVER_NAME! \bin\!SERVER_NAME! .exe --config=!CONFIG! > nul
36
+ )
37
+
38
+ )
39
+
40
+ ENDLOCAL
Original file line number Diff line number Diff line change
1
+
2
+ @ echo off
3
+ setlocal enabledelayedexpansion
4
+
5
+ @ echo off
6
+ set PATH = %PATH% ;TARS_PATH\tarsnode\data\lib\;
7
+
8
+ @ echo off
9
+ set SERVER_NAME = %1
10
+
11
+ @ echo off
12
+ set COMMAND = %2
13
+
14
+ @ echo off
15
+ if " !COMMAND! " == " stop" (
16
+ @ echo off
17
+ taskkill /f /fi " imagename eq !SERVER_NAME! .exe" /im !SERVER_NAME! .exe /t
18
+ )
19
+
20
+ @ echo off
21
+ if " !COMMAND! " == " start" (
22
+ @ echo off
23
+ taskkill /f /fi " imagename eq !SERVER_NAME! .exe" /im !SERVER_NAME! .exe /t
24
+ REM taskkill /im !SERVER_NAME!.exe /t /f
25
+
26
+ set CONFIG = TARS_PATH\tarsnode\data\tars.!SERVER_NAME! \conf\tars.!SERVER_NAME! .config.conf
27
+
28
+ if not exist !CONFIG! (
29
+
30
+ start /b TARS_PATH\!SERVER_NAME! \bin\!SERVER_NAME! .exe --config=TARS_PATH\!SERVER_NAME! \conf\tars.!SERVER_NAME! .config.conf > nul
31
+
32
+ ) else (
33
+
34
+ echo " start !SERVER_NAME! .exe --config=!CONFIG! "
35
+ start /b TARS_PATH\!SERVER_NAME! \bin\!SERVER_NAME! .exe --config=!CONFIG! > nul
36
+ )
37
+
38
+ )
39
+
40
+ ENDLOCAL
Original file line number Diff line number Diff line change
1
+
2
+ @ echo off
3
+ setlocal enabledelayedexpansion
4
+
5
+ @ echo off
6
+ set PATH = %PATH% ;TARS_PATH\tarsnode\data\lib\;
7
+
8
+ @ echo off
9
+ set SERVER_NAME = %1
10
+
11
+ @ echo off
12
+ set COMMAND = %2
13
+
14
+ @ echo off
15
+ if " !COMMAND! " == " stop" (
16
+ @ echo off
17
+ taskkill /f /fi " imagename eq !SERVER_NAME! .exe" /im !SERVER_NAME! .exe /t
18
+ )
19
+
20
+ @ echo off
21
+ if " !COMMAND! " == " start" (
22
+ @ echo off
23
+ taskkill /f /fi " imagename eq !SERVER_NAME! .exe" /im !SERVER_NAME! .exe /t
24
+ REM taskkill /im !SERVER_NAME!.exe /t /f
25
+
26
+ set CONFIG = TARS_PATH\tarsnode\data\tars.!SERVER_NAME! \conf\tars.!SERVER_NAME! .config.conf
27
+
28
+ if not exist !CONFIG! (
29
+
30
+ start /b TARS_PATH\!SERVER_NAME! \bin\!SERVER_NAME! .exe --config=TARS_PATH\!SERVER_NAME! \conf\tars.!SERVER_NAME! .config.conf > nul
31
+
32
+ ) else (
33
+
34
+ echo " start !SERVER_NAME! .exe --config=!CONFIG! "
35
+ start /b TARS_PATH\!SERVER_NAME! \bin\!SERVER_NAME! .exe --config=!CONFIG! > nul
36
+ )
37
+
38
+ )
39
+
40
+ ENDLOCAL
You can’t perform that action at this time.
0 commit comments