Removing /dev/log on rsyslog start
Currently we seem to be experiencing races between containers. If another containers tries to write to rsyslog before rsyslog container is up and running it will create /dev/log as directory, and that will prevent rsyslog from starting. Change-Id: I88ac27693d12e605f95e3a945fc98783516d7933 Closes-Bug: #1501694 backport: liberty
This commit is contained in:
parent
e230c0752e
commit
865ba80231
@ -13,4 +13,6 @@ RUN apt-get install -y --no-install-recommends rsyslog \
|
|||||||
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
COPY extend_start.sh /usr/local/bin/kolla_extend_start
|
||||||
|
|
||||||
{{ include_footer }}
|
{{ include_footer }}
|
||||||
|
5
docker/logging/rsyslog/extend_start.sh
Normal file
5
docker/logging/rsyslog/extend_start.sh
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
if [[ -e "/dev/log" ]]; then
|
||||||
|
rm -rf /dev/log
|
||||||
|
fi
|
Loading…
Reference in New Issue
Block a user