Spaces:
Sleeping
Sleeping
| # HF Space ๅ ฅๅฃ็น๏ผๆธ ็ๆๆๆง node ่ฟ็จๅๅฏๅจ supervisord | |
| echo "[entrypoint] Cleaning up old node processes..." | |
| # ๆๆๆๆ้ๅฝๅ shell ็ node ่ฟ็จ | |
| for pid in $(pgrep -x node 2>/dev/null); do | |
| echo "[entrypoint] Killing node PID $pid" | |
| kill -9 "$pid" 2>/dev/null | |
| done | |
| # ไนๆๆๅฏ่ฝๆฎ็็ kb-worker ่ฟ็จ | |
| for pid in $(pgrep -f 'kb-worker' 2>/dev/null); do | |
| if [ "$pid" != "$$" ]; then | |
| echo "[entrypoint] Killing kb-worker PID $pid" | |
| kill -9 "$pid" 2>/dev/null | |
| fi | |
| done | |
| echo "[entrypoint] Cleanup done, starting supervisord..." | |
| exec supervisord -c /etc/supervisor/conf.d/app.conf -n | |