Cron 모니터: zombie PID를 살아있다고 보지 않기
kill -0 $pid는 /proc/$pid **State=Z(zombie)**에도 성공한다. 워커가 이미 끝났는데 모니터가 running으로 남겨 exit 99(process disappeared / empty worker.log)가 난다.
수정
# 잘못된 예
kill -0 "$pid" && echo running
# 권장: /proc/$pid/stat 또는 status에서 State!=Z (+ 존재)
is_pid_running() {
local st
st=$(awk '{print $3}' "/proc/$1/stat" 2>/dev/null) || return 1
[[ "$st" != "Z" ]]
}운영 축 분리
- Launcher 실행성: PVC 0644 →
setsid bash— PVC-Nonexec-Script-Setsid-Bash.md. - ConfigMap reseed: bare
nohup/exec "$@"가 PVC hotfix를 덮어쓰면 빈 로그·exit 99 재발 → repoagent/cron/SSoT, skill 경로는 thinexecshim. - 로그 경로:
/tmp/...만 쓰면 Pod 재시작 시 유실 → durable state 경로.