summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMalfurious <m@lfurio.us>2023-10-31 11:01:56 -0400
committerMalfurious <m@lfurio.us>2023-11-02 06:11:59 -0400
commit906a87dd480c490299d1788c6ce11b81e977acbf (patch)
treee873a2612315f5e226885de965976e3faa943e37
parentb044b6da7f584f3038ac995c4a53e44f1135d9d3 (diff)
downloadcychedelic-906a87dd480c490299d1788c6ce11b81e977acbf.tar.gz
cychedelic-906a87dd480c490299d1788c6ce11b81e977acbf.zip
acid: Produce job logs for service removal
Signed-off-by: Malfurious <m@lfurio.us>
-rwxr-xr-xacid/acid11
1 files 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
}