Fix ATVM watcher service restart after failed units
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user