From a662af3667956389774de5867404f8ae40a55c21 Mon Sep 17 00:00:00 2001 From: CrazyMax <1951866+crazy-max@users.noreply.github.com> Date: Sat, 1 Aug 2026 15:55:28 +0200 Subject: [PATCH] log msmtpd daemon output to stderr --- Dockerfile | 2 +- rootfs/etc/cont-init.d/03-create-service.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index c2da8eb..31faed0 100644 --- a/Dockerfile +++ b/Dockerfile @@ -55,4 +55,4 @@ COPY rootfs / EXPOSE 2500 HEALTHCHECK --interval=10s --timeout=5s \ - CMD printf 'EHLO localhost\r\nQUIT\r\n' | nc -w 2 127.0.0.1 "$LISTEN_PORT" | grep -q '^250' || exit 1 + CMD netstat -ltn | grep -q ":${LISTEN_PORT}[[:space:]].*LISTEN" || exit 1 diff --git a/rootfs/etc/cont-init.d/03-create-service.sh b/rootfs/etc/cont-init.d/03-create-service.sh index aadb26e..12ea3bd 100644 --- a/rootfs/etc/cont-init.d/03-create-service.sh +++ b/rootfs/etc/cont-init.d/03-create-service.sh @@ -6,6 +6,6 @@ cat > /etc/services.d/msmtpd/run <