From 906a87dd480c490299d1788c6ce11b81e977acbf Mon Sep 17 00:00:00 2001 From: Malfurious Date: Tue, 31 Oct 2023 11:01:56 -0400 Subject: acid: Produce job logs for service removal Signed-off-by: Malfurious --- acid/acid | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/acid/acid b/acid/acid index a22450c..9b01fb5 100755 --- a/acid/acid +++ b/acid/acid @@ -80,8 +80,15 @@ remove() { removed=$(printf '%s\n' "$next" "$next" "$prev" | sort | uniq -u) for name in $removed; do - acid-remove "$name" - echo "Removed $name" + job=$(make_log "$NULL_HASH" "remove" "$name") + log="$CYCHE_LOG_DIR/$job/log" + + echo "$job" >"$CYCHE_STATUS_FILE" + echo "Removing $name" + + acid-remove "$name" >"$log" 2>&1 + + echo "maint" >"$CYCHE_STATUS_FILE" sleep "$CYCHE_JOB_TIME" done } -- cgit v1.2.3