dcb0d3c365
Make moicen env copying compatible with sibling AuthCore repo and add start/stop/build helper scripts for huiwings stack bring-up on moicen hosts. Made-with: Cursor
8 lines
443 B
Bash
Executable File
8 lines
443 B
Bash
Executable File
#!/usr/bin/env bash
|
|
# 在**即将下线的** moicen 或切流量前,结束 UC/WS/KC/htyts 的 cargo 可执行体(与 ps 里 /target/.../htyuc|htyws|htykc|htyts 匹配)。勿在有其它同名进程的主机上盲目使用。
|
|
set -euo pipefail
|
|
for p in htyuc htyws htykc htyts; do
|
|
pkill -f "/target/.*/$p" 2>/dev/null || true
|
|
done
|
|
echo "已发送 pkill;请 ps 确认无残留;admin/ts 前端的反代在其余入口自行维护。"
|