From b1edceb3408a7252a46ed5568982026f3400cd05 Mon Sep 17 00:00:00 2001 From: minkyu1128 Date: Mon, 16 May 2022 12:55:35 +0900 Subject: [PATCH] =?UTF-8?q?script=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Deploy/bin/restart.bat | 8 ++++++++ Deploy/bin/shutdown.bat | 2 +- Deploy/bin/startup-background.vbs | 2 ++ Deploy/bin/startup.bat | 2 +- 4 files changed, 12 insertions(+), 2 deletions(-) create mode 100644 Deploy/bin/restart.bat create mode 100644 Deploy/bin/startup-background.vbs diff --git a/Deploy/bin/restart.bat b/Deploy/bin/restart.bat new file mode 100644 index 0000000..adc833c --- /dev/null +++ b/Deploy/bin/restart.bat @@ -0,0 +1,8 @@ +@echo off + +@echo 실행 프로그램들을 실행 합니다. + +SET CLASSPATH=C:\xit\IntelliJ-Workspace\Deploy\bin + +@START /d %CLASSPATH% /b shutdown.bat +@START /d %CLASSPATH% /b startup.bat \ No newline at end of file diff --git a/Deploy/bin/shutdown.bat b/Deploy/bin/shutdown.bat index a4012b9..1ab0b92 100644 --- a/Deploy/bin/shutdown.bat +++ b/Deploy/bin/shutdown.bat @@ -1,4 +1,4 @@ @echo off -for /F "delims=" %%i in (app-ci.pid) do set "PROC_ID=%%i" +for /F "delims=" %%i in (./app-ci.pid) do set "PROC_ID=%%i" taskkill /F /PID %PROC_ID% \ No newline at end of file diff --git a/Deploy/bin/startup-background.vbs b/Deploy/bin/startup-background.vbs new file mode 100644 index 0000000..19487e9 --- /dev/null +++ b/Deploy/bin/startup-background.vbs @@ -0,0 +1,2 @@ +Set objShell = CreateObject("Shell.Application") +objShell.ShellExecute ".\restart.bat", "/c lodctr.exe /r","","runas",0 \ No newline at end of file diff --git a/Deploy/bin/startup.bat b/Deploy/bin/startup.bat index 45da716..529a33a 100644 --- a/Deploy/bin/startup.bat +++ b/Deploy/bin/startup.bat @@ -4,5 +4,5 @@ rem Started... rem java -jar ..\webapp\ci-1.0.0.war rem Started background... -@START /b shutdown.bat +rem @START /b .\shutdown.bat @START /b ..\java\corretto-1.8.0_332\bin\java_app-ci "-Dspring.profiles.active=prod" -jar ..\webapp\ci-1.0.0.war \ No newline at end of file