diff options
author | Malfurious <m@lfurio.us> | 2023-10-31 11:01:56 -0400 |
---|---|---|
committer | Malfurious <m@lfurio.us> | 2023-11-02 06:11:59 -0400 |
commit | 906a87dd480c490299d1788c6ce11b81e977acbf (patch) | |
tree | e873a2612315f5e226885de965976e3faa943e37 | |
parent | b044b6da7f584f3038ac995c4a53e44f1135d9d3 (diff) | |
download | cychedelic-906a87dd480c490299d1788c6ce11b81e977acbf.tar.gz cychedelic-906a87dd480c490299d1788c6ce11b81e977acbf.zip |
acid: Produce job logs for service removal
Signed-off-by: Malfurious <m@lfurio.us>
-rwxr-xr-x | acid/acid | 11 |
1 files changed, 9 insertions, 2 deletions
@@ -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 } |