Files
反编译工作区 6f1cd21a5b refactor: rename main class to AppApplication to match V1 naming
- V1 main class: cn.cloudwalk.elevator.AppApplication
- V2 was ElevatorApplication, now aligned to AppApplication
- Also update reference in test script
2026-05-05 18:17:38 +08:00

10 lines
354 B
Bash
Executable File

#!/usr/bin/env bash
# 停止与本目录 cw-elevator-application-2.0.13.jar 对应的 Java 进程(仅匹配命令行中含该 JAR 名的进程)。
set -euo pipefail
JAR="cw-elevator-application-2.0.13.jar"
# shellcheck disable=SC2009
pid=$(ps -ef | grep '[j]ava' | grep "$JAR" | awk '{print $2}' || true)
if [[ -n "${pid}" ]]; then
kill -9 $pid
fi