[SOGo] Log to a pipe to not keep logs in a container
This commit is contained in:
parent
99cd459655
commit
a31819fd6c
@ -3,9 +3,11 @@ 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
|
|
||||||
priority=1
|
priority=1
|
||||||
|
|
||||||
[program:cron]
|
[program:cron]
|
||||||
@ -22,22 +24,24 @@ priority=4
|
|||||||
|
|
||||||
[program:reconf-domains]
|
[program:reconf-domains]
|
||||||
command=/reconf-domains.sh
|
command=/reconf-domains.sh
|
||||||
|
stdout_logfile=/dev/stdout
|
||||||
|
stdout_logfile_maxbytes=0
|
||||||
|
stderr_logfile=/dev/stderr
|
||||||
|
stderr_logfile_maxbytes=0
|
||||||
priority=3
|
priority=3
|
||||||
autorestart=true
|
autorestart=true
|
||||||
|
|
||||||
[program:sogo]
|
[program:sogo]
|
||||||
command="/usr/sbin/sogod"
|
command="/usr/sbin/sogod"
|
||||||
user=sogo
|
user=sogo
|
||||||
|
stdout_logfile=/dev/stdout
|
||||||
|
stdout_logfile_maxbytes=0
|
||||||
|
stderr_logfile=/dev/stderr
|
||||||
|
stderr_logfile_maxbytes=0
|
||||||
autorestart = unexpected
|
autorestart = unexpected
|
||||||
autostart = false
|
autostart = false
|
||||||
priority=5
|
priority=5
|
||||||
|
|
||||||
[program:sogo-syslog]
|
|
||||||
command=/usr/bin/tail -f /var/log/combined.log
|
|
||||||
stdout_logfile=/dev/fd/1
|
|
||||||
stdout_logfile_maxbytes=0
|
|
||||||
priority=6
|
|
||||||
|
|
||||||
[inet_http_server]
|
[inet_http_server]
|
||||||
port=9191
|
port=9191
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
@version: 3.5
|
@version: 3.8
|
||||||
@include "scl.conf"
|
@include "scl.conf"
|
||||||
options {
|
options {
|
||||||
chain_hostnames(off);
|
chain_hostnames(off);
|
||||||
@ -14,12 +14,10 @@ source s_src {
|
|||||||
internal();
|
internal();
|
||||||
};
|
};
|
||||||
source s_sogo {
|
source s_sogo {
|
||||||
file("/var/log/sogo/sogo.log");
|
pipe("/dev/sogo_log" owner(sogo) group(sogo));
|
||||||
};
|
};
|
||||||
destination d_combined {
|
destination d_stdout { pipe("/dev/stdout"); };
|
||||||
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")
|
||||||
@ -37,11 +35,11 @@ destination d_redis_f2b_channel {
|
|||||||
};
|
};
|
||||||
log {
|
log {
|
||||||
source(s_sogo);
|
source(s_sogo);
|
||||||
source(s_src);
|
destination(d_redis_ui_log);
|
||||||
destination(d_combined);
|
destination(d_redis_f2b_channel);
|
||||||
};
|
};
|
||||||
log {
|
log {
|
||||||
source(s_sogo);
|
source(s_sogo);
|
||||||
destination(d_redis_persistent_log);
|
source(s_src);
|
||||||
destination(d_redis_f2b_channel);
|
destination(d_stdout);
|
||||||
};
|
};
|
||||||
|
@ -78,4 +78,5 @@
|
|||||||
//MySQL4DebugEnabled = YES;
|
//MySQL4DebugEnabled = YES;
|
||||||
//SOGoUIxDebugEnabled = YES;
|
//SOGoUIxDebugEnabled = YES;
|
||||||
//WODontZipResponse = YES;
|
//WODontZipResponse = YES;
|
||||||
|
WOLogFile = "/dev/sogo_log";
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user