feat(moicen): htyts/htyproc 与一键栈一致的 nohup 与 logrotate 日志
- start.sh:清代理、可选 --release、追加 *.nohup.log - moicen_start:默认在有 htyproc/.env 时起 htyproc(MOICEN_START_HTYPROC=0|no 可关) - moicen_stop:pkill 含 htyproc Made-with: Cursor
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
#!/usr/bin/env bash
|
||||
# 在**即将下线的** moicen 或切流量前,结束 UC/WS/KC/htyts 的 cargo 可执行体(与 ps 里 /target/.../htyuc|htyws|htykc|htyts 匹配)。勿在有其它同名进程的主机上盲目使用。
|
||||
# 在**即将下线的** moicen 或切流量前,结束 UC/WS/KC/htyts/htyproc 的 cargo 可执行体(与 ps 里 /target/.../ 匹配)。勿在有其它同名进程的主机上盲目使用。
|
||||
set -euo pipefail
|
||||
for p in htyuc htyws htykc htyts; do
|
||||
for p in htyuc htyws htykc htyts htyproc; do
|
||||
pkill -f "/target/.*/$p" 2>/dev/null || true
|
||||
done
|
||||
echo "已发送 pkill;请 ps 确认无残留;admin/ts 前端的反代在其余入口自行维护。"
|
||||
echo "已发送 pkill;请 ps 确认无残留;admin/ts/proc 前端的反代在其余入口自行维护。"
|
||||
|
||||
Reference in New Issue
Block a user