From 207be2763eafce043a9b7e9005165738e035a8e9 Mon Sep 17 00:00:00 2001 From: Benedikt Braunger Date: Wed, 24 Jan 2024 23:00:31 +0100 Subject: [PATCH] docker-entry: set ulimit for rsyslog --- docker-entry.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docker-entry.sh b/docker-entry.sh index 5a336664..0eb8a501 100755 --- a/docker-entry.sh +++ b/docker-entry.sh @@ -132,7 +132,9 @@ for svc in ${RUN_SERVICES}; do elif [ "$svc" = "rsyslogd" ]; then # TODO: can we switch to proper service start? #service rsyslog start - /usr/sbin/rsyslogd + # limit the amout of open files for rsyslog due to + # https://github.com/rsyslog/rsyslog/issues/5158#issuecomment-1708760846 + ( ulimit -n 1024; /usr/sbin/rsyslogd ) status=$? if [ $status -ne 0 ]; then echo "Failed to start $svc: $status"