mirror of
https://github.com/ansible/awx.git
synced 2024-10-27 09:25:10 +03:00
Add rsyslog to supervisor for the task container
- Add proper paths for rsyslog's supervisor logs - Do not enable debug mode for rsyslogd - Include system rsyslog.conf, and specify tower logging conf when starting rsyslog.
This commit is contained in:
parent
4cd0d60711
commit
f8afae308a
@ -28,6 +28,7 @@ def reconfigure_rsyslog():
|
||||
|
||||
parts = []
|
||||
parts.extend([
|
||||
'$IncludeConfig /etc/rsyslog.conf',
|
||||
'$ModLoad imudp',
|
||||
'$UDPServerRun 51414',
|
||||
'template(name="awx" type="string" string="%msg%")',
|
||||
|
@ -26,8 +26,20 @@ stdout_logfile_maxbytes=0
|
||||
stderr_logfile=/dev/stderr
|
||||
stderr_logfile_maxbytes=0
|
||||
|
||||
[program:awx-rsyslogd]
|
||||
command = rsyslogd -n -i /awx_devel/rsyslog.pid
|
||||
autostart = true
|
||||
autorestart = true
|
||||
stopwaitsecs = 1
|
||||
stopsignal=KILL
|
||||
stopasgroup=true
|
||||
killasgroup=true
|
||||
redirect_stderr=true
|
||||
stdout_logfile=/dev/stderr
|
||||
stdout_logfile_maxbytes=0
|
||||
|
||||
[group:tower-processes]
|
||||
programs=dispatcher,callback-receiver
|
||||
programs=dispatcher,callback-receiver,awx-rsyslogd
|
||||
priority=5
|
||||
|
||||
# TODO: Exit Handler
|
||||
|
@ -72,7 +72,7 @@ stdout_logfile=/dev/fd/1
|
||||
stdout_logfile_maxbytes=0
|
||||
|
||||
[program:awx-rsyslogd]
|
||||
command = rsyslogd -nd -i /awx_devel/rsyslog.pid
|
||||
command = rsyslogd -n -i /awx_devel/rsyslog.pid
|
||||
autostart = true
|
||||
autorestart = true
|
||||
stopwaitsecs = 1
|
||||
@ -80,7 +80,7 @@ stopsignal=KILL
|
||||
stopasgroup=true
|
||||
killasgroup=true
|
||||
redirect_stderr=true
|
||||
stdout_logfile=/tmp/ryan
|
||||
stdout_logfile=/dev/fd/1
|
||||
stdout_logfile_maxbytes=0
|
||||
|
||||
[group:tower-processes]
|
||||
|
Loading…
Reference in New Issue
Block a user