Add docker-fence v1 with tests and docs

This commit is contained in:
Djeex committed 2026-12-05 15:32:27 +00:00
commit 305cb562f8
46 files changed
+5473

No files matched your search

+11
View File
@@ -0,0 +1,11 @@
#!/usr/bin/env bash
# Fake systemd-run: records the timer command without running it.
set -euo pipefail
printf 'systemd-run %s\n' "$*" >>"$STUB_LOG"
[[ "${STUB_SYSTEMD_RUN_RC:-0}" == 0 ]] || exit "$STUB_SYSTEMD_RUN_RC"
# systemd-run options come before the scheduled command.
while (( $# > 0 )) && [[ "$1" == --* ]]; do
[[ "$1" == --setenv=* ]] && printf '%s\n' "${1#--setenv=}" >"$STUB_STATE/timer_env"
shift
done
printf '%s\n' "$@" >"$STUB_STATE/timer_cmd"