kolla/docker/logging/rsyslog/extend_start.sh
Michal Jastrzebski 865ba80231 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
2015-10-07 11:32:28 +02:00

6 lines
65 B
Bash

#!/bin/bash
if [[ -e "/dev/log" ]]; then
rm -rf /dev/log
fi