remove rsyslogd.pid before start to allow container restarts

This change mitigate problems with container restarts (stop, start) or automatic restart after host machine restart. Rsyslogd strictly checks existence of its pid file and won't start if such one exists.
This commit is contained in:
dejwsz 2016-12-01 15:31:14 +01:00 committed by GitHub
parent 43f427cfe9
commit 719072e0ba

View File

@ -20,4 +20,4 @@ VOLUME /var/log/docker/
EXPOSE 514
CMD crond && rsyslogd -n
CMD crond && rm -f /var/run/rsyslogd.pid && rsyslogd -n