[Dovecot] Do not keep persistent logs in a container

master
andryyy 2017-07-11 17:09:31 +02:00
parent f8ae5158cb
commit 9e92c4a2ad
2 changed files with 8 additions and 12 deletions

View File

@ -3,19 +3,16 @@ nodaemon=true
[program:syslog-ng] [program:syslog-ng]
command=/usr/sbin/syslog-ng --foreground --no-caps command=/usr/sbin/syslog-ng --foreground --no-caps
redirect_stderr=true stdout_logfile=/dev/stdout
stdout_logfile_maxbytes=0
stderr_logfile=/dev/stderr
stderr_logfile_maxbytes=0
autostart=true autostart=true
stdout_syslog=true
[program:dovecot] [program:dovecot]
command=/usr/local/sbin/dovecot -F command=/usr/local/sbin/dovecot -F
autorestart=true autorestart=true
[program:logfiles]
command=/usr/bin/tail -f /var/log/combined.log
stdout_logfile=/dev/fd/1
stdout_logfile_maxbytes=0
[program:cron] [program:cron]
command=/usr/sbin/cron -f command=/usr/sbin/cron -f
autorestart=true autorestart=true

View File

@ -13,9 +13,8 @@ source s_src {
unix-stream("/dev/log"); unix-stream("/dev/log");
internal(); internal();
}; };
destination d_stdout { pipe("/dev/stdout"); };
destination d_combined { file("/var/log/combined.log"); }; destination d_redis_ui_log {
destination d_redis_persistent_log {
redis( redis(
host("redis-mailcow") host("redis-mailcow")
persist-name("redis1") persist-name("redis1")
@ -34,8 +33,8 @@ destination d_redis_f2b_channel {
filter f_mail { facility(mail); }; filter f_mail { facility(mail); };
log { log {
source(s_src); source(s_src);
destination(d_combined); destination(d_stdout);
filter(f_mail); filter(f_mail);
destination(d_redis_persistent_log); destination(d_redis_ui_log);
destination(d_redis_f2b_channel); destination(d_redis_f2b_channel);
}; };