Fix ATVM watcher service restart after failed units

This commit is contained in:
Anthony Wen
2026-08-03 22:50:04 -04:00
parent 556cce9408
commit 4d1be35ed5
4 changed files with 10 additions and 0 deletions
@@ -63,6 +63,7 @@ fi
RUN_DIR="${STATE_ROOT}/${BUILD_NAME}"
RUN_LOG="/tmp/${BUILD_NAME}.log"
systemctl stop "atvm-run-watcher@${BUILD_NAME}.service" >/dev/null 2>&1 || true
systemctl reset-failed "atvm-run-watcher@${BUILD_NAME}.service" >/dev/null 2>&1 || true
rm -rf "$RUN_DIR"
rm -f "$RUN_LOG"
mkdir -p "$RUN_DIR"