Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update startup scripts #2026

Merged
merged 1 commit into from
Nov 24, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions bin/run-klaw.bat
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
@echo off

SET CURRENTDIR="%cd%"
set DIR=%~dp0..\
cd %DIR%

set version=2.6.0
set core_lib=.\core\target\klaw-%version%.jar
set cluster_lib=.\cluster-api\target\cluster-api-%version%.jar
Expand All @@ -8,14 +13,11 @@ set core_log_file=core.log
set clusterapi_log_file=cluster-api.log

echo Starting Klaw servers ..

echo ---------- Klaw Core ----------

if not exist "%core_lib%" (
echo %core_lib% doesn't exist. Exiting ..
exit /b 1
)

tasklist /FI "IMAGENAME eq java.exe" 2>NUL | find /I "core" >NUL
if %errorlevel% equ 0 (
echo Core is already running
Expand All @@ -26,12 +28,10 @@ if %errorlevel% equ 0 (
)

echo ---------- Klaw Cluster api ----------

if not exist "%cluster_lib%" (
echo %cluster_lib% doesn't exist. Exiting ..
exit /b 1
)

tasklist /FI "IMAGENAME eq java.exe" 2>NUL | find /I "cluster-api" >NUL
if %errorlevel% equ 0 (
echo Cluster-api is already running
Expand All @@ -40,5 +40,5 @@ if %errorlevel% equ 0 (
start /B java -jar %cluster_lib% --spring.config.location=%cluster_config% > %clusterapi_log_file%
tasklist /FI "IMAGENAME eq java.exe" 2>NUL | find /I "cluster-api" >NUL
)

echo Logging to %core_log_file% %clusterapi_log_file%
cd %CURRENTDIR%
echo Logging to %core_log_file% %clusterapi_log_file%
3 changes: 3 additions & 0 deletions bin/run-klaw.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
#!/bin/bash

WORKING_DIR="$(dirname "$0")"/..
cd $WORKING_DIR

# Declarations
version=2.6.0
core_lib=./core/target/klaw-${version}.jar
Expand Down
Loading