Add tini to handle zombies created by Nagios

This commit is contained in:
nemunaire 2022-02-06 00:26:55 +01:00
parent 3e34f686b5
commit e221311c73
2 changed files with 3 additions and 2 deletions

View File

@ -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

View File

@ -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 -- $@