Files
ITWorx-Pulse-Public/deploy/pulse-entrypoint.sh
T
ITWorx Pulse release export bd774932d5
Public source validation / validate (push) Failing after 3m8s
Publish ITWorx Pulse source
2026-09-03 02:09:19 +02:00

19 lines
773 B
Bash

#!/bin/sh
# Minimal entrypoint wrapper used by pulse-worker and pulse-agent images.
#
# It records the container's process start time (as seen from inside the
# container) before exec'ing the real binary, so
# deploy/healthcheck-heartbeat.sh can grant a startup grace period without
# depending on Docker's HEALTHCHECK `start_period` semantics, which only
# suppress unhealthy *status* transitions and do not stop the HEALTHCHECK
# CMD (including its self-restart action) from running during that window.
#
# Contract: this script does not replace or delay the real entrypoint. It
# performs one tmpfs write and then immediately execs the given command,
# replacing this shell process (PID 1 stays the real Go binary).
set -eu
date +%s > /tmp/.pulse-started-at
exec "$@"