From e221311c736e9a54dfadceaf580a2c1a87d317ec Mon Sep 17 00:00:00 2001 From: Pierre-Olivier Mercier Date: Sun, 6 Feb 2022 00:26:55 +0100 Subject: [PATCH] Add tini to handle zombies created by Nagios --- Dockerfile | 3 ++- entrypoint.sh | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 46a44bc..453103d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -22,7 +22,8 @@ RUN apk add --no-cache \ nagios-plugins-tcp \ nagios-web \ nrpe-plugin \ - ssmtp && \ + ssmtp \ + tini && \ chown nagios /etc/ssmtp/ssmtp.conf COPY FREE_send_notification.sh /usr/bin/FREE_send_notification.sh diff --git a/entrypoint.sh b/entrypoint.sh index 0358815..f70524a 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -3,4 +3,4 @@ [ -n "${MAILER_HOST}" ] && sed -r "/^mailhub=/s/.*/mailhub=${MAILER_HOST}/" /etc/ssmtp/ssmtp.conf > ~/ssmtp.conf && cat ~/ssmtp.conf > /etc/ssmtp/ssmtp.conf [ -n "${MAILER_REWRITEDOMAIN}" ] && sed -r "/^#?rewriteDomain=/s/.*/rewriteDomain=${MAILER_REWRITEDOMAIN}/" /etc/ssmtp/ssmtp.conf > ~/ssmtp.conf && cat ~/ssmtp.conf > /etc/ssmtp/ssmtp.conf -exec $@ +exec /sbin/tini -- $@