[postfix] expose logs by linking to STDOUT (#440)

This commit is contained in:
trilitheus 2018-11-14 15:22:29 +00:00 committed by Jess Frazelle
parent 91d6e966d3
commit 6254f5bc19
4 changed files with 2 additions and 1 deletions

View File

@ -14,6 +14,8 @@ COPY service /etc/service
COPY runit_bootstrap /usr/sbin/runit_bootstrap COPY runit_bootstrap /usr/sbin/runit_bootstrap
COPY rsyslog.conf /etc/rsyslog.conf COPY rsyslog.conf /etc/rsyslog.conf
RUN ln -sf /dev/stdout /var/log/mail.log
STOPSIGNAL SIGKILL STOPSIGNAL SIGKILL
ENTRYPOINT ["/usr/sbin/runit_bootstrap"] ENTRYPOINT ["/usr/sbin/runit_bootstrap"]

View File

@ -81,4 +81,3 @@ if [[ ! -z "$SASL_AUTH" ]]; then
fi fi
/usr/lib/postfix/master -c /etc/postfix -d 2>&1 /usr/lib/postfix/master -c /etc/postfix -d 2>&1
tail -F /var/log/mail.log

View File

View File