system, add runit sleep script.

This commit is contained in:
me
2026-10-17 08:18:29 -07:00
parent be53012c48
commit 90ecb842d3
+11
View File
@@ -15,6 +15,17 @@
runit_log_dir: log runit_log_dir: log
global_log: /var/log global_log: /var/log
global_log_config: config global_log_config: config
runit_finish_sleep: |
#!/bin/sh
exec 2>&1
# $1 is the exit code, $2 is the exit status byte (signal number if killed)
echo "FINISH: Service returned with exit code: $1 and status: $2"
sleep=30
if [[ "$1" != 0 ]]; then
echo "FINISH: Sleeping for $sleep seconds due to error..."
sleep $sleep
fi
- name: General | Facts | System | Global 02 - name: General | Facts | System | Global 02
ansible.builtin.set_fact: ansible.builtin.set_fact: