From 6254f5bc1982fa6d516800d2420d45391762a4e8 Mon Sep 17 00:00:00 2001 From: trilitheus Date: Wed, 14 Nov 2018 15:22:29 +0000 Subject: [PATCH] [postfix] expose logs by linking to STDOUT (#440) --- postfix/Dockerfile | 2 ++ postfix/service/postfix/run | 1 - postfix/service/postfix/supervise/.gitignore | 0 postfix/service/rsyslog/supervise/.gitignore | 0 4 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 postfix/service/postfix/supervise/.gitignore create mode 100644 postfix/service/rsyslog/supervise/.gitignore diff --git a/postfix/Dockerfile b/postfix/Dockerfile index 054532e..a713347 100644 --- a/postfix/Dockerfile +++ b/postfix/Dockerfile @@ -14,6 +14,8 @@ COPY service /etc/service COPY runit_bootstrap /usr/sbin/runit_bootstrap COPY rsyslog.conf /etc/rsyslog.conf +RUN ln -sf /dev/stdout /var/log/mail.log + STOPSIGNAL SIGKILL ENTRYPOINT ["/usr/sbin/runit_bootstrap"] diff --git a/postfix/service/postfix/run b/postfix/service/postfix/run index eeb1411..dd98514 100755 --- a/postfix/service/postfix/run +++ b/postfix/service/postfix/run @@ -81,4 +81,3 @@ if [[ ! -z "$SASL_AUTH" ]]; then fi /usr/lib/postfix/master -c /etc/postfix -d 2>&1 -tail -F /var/log/mail.log diff --git a/postfix/service/postfix/supervise/.gitignore b/postfix/service/postfix/supervise/.gitignore new file mode 100644 index 0000000..e69de29 diff --git a/postfix/service/rsyslog/supervise/.gitignore b/postfix/service/rsyslog/supervise/.gitignore new file mode 100644 index 0000000..e69de29