fix: correct cleanup service order in dev.sh
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
2382ae880c
commit
a5dd07c9cb
@ -21,7 +21,7 @@ cleanup() {
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# 清理所有 PID 文件并杀服务进程
|
# 清理所有 PID 文件并杀服务进程
|
||||||
for service in activityService galleryService socialService assetService userService gateway; do
|
for service in gateway activityService galleryService socialService assetService userService; do
|
||||||
pkill -9 -f "$service" 2>/dev/null || true
|
pkill -9 -f "$service" 2>/dev/null || true
|
||||||
rm -f "/tmp/dev_sh_${service}.pid" "/tmp/dev_sh_${service}_restart"
|
rm -f "/tmp/dev_sh_${service}.pid" "/tmp/dev_sh_${service}_restart"
|
||||||
echo -e "${YELLOW} 🛑 $service 已停止${NC}"
|
echo -e "${YELLOW} 🛑 $service 已停止${NC}"
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user