Fix rmilter logging

master
andryyy 2016-12-23 12:52:36 +01:00
parent 29f343c193
commit 301bd3bc9f
2 changed files with 2 additions and 1 deletions

View File

@ -19,6 +19,7 @@ COPY supervisord.conf /etc/supervisor/supervisord.conf
EXPOSE 9000 EXPOSE 9000
RUN sed -i -E 's/^(\s*)system\(\);/\1unix-stream("\/dev\/log");/' /etc/syslog-ng/syslog-ng.conf RUN sed -i -E 's/^(\s*)system\(\);/\1unix-stream("\/dev\/log");/' /etc/syslog-ng/syslog-ng.conf
RUN touch /var/log/mail.log && chmod 640 /var/log/mail.log && chown root:adm /var/log/mail.log
CMD exec /usr/bin/supervisord -c /etc/supervisor/supervisord.conf CMD exec /usr/bin/supervisord -c /etc/supervisor/supervisord.conf

View File

@ -13,6 +13,6 @@ user=_rmilter
autorestart=true autorestart=true
[program:rmilter-syslog] [program:rmilter-syslog]
command=/usr/bin/tail -f /var/log/syslog command=/usr/bin/tail -f /var/log/mail.log
stdout_logfile=/dev/fd/1 stdout_logfile=/dev/fd/1
stdout_logfile_maxbytes=0 stdout_logfile_maxbytes=0