Fix race condition causing rsyslog to crash

This commit is contained in:
Shane McDonald 2022-03-25 08:15:37 -04:00
parent 0cbc802cf4
commit dbdc529d4a

View File

@ -17,4 +17,11 @@ set -e
wait-for-migrations
# This file will be re-written when the dispatcher calls reconfigure_rsyslog(),
# but it needs to exist when supervisor initially starts rsyslog to prevent the
# container from crashing. This was the most minimal config I could get working.
cat << EOF > /var/lib/awx/rsyslog/rsyslog.conf
action(type="omfile" file="/dev/null")
EOF
supervisord -c /etc/supervisord.conf