Fix copying systemd libraries upon fluentd-gcp startup

This commit is contained in:
Mik Vyatskov
2017-02-14 15:41:15 +01:00
parent d5a4a7ca14
commit a1ec542d7c
4 changed files with 27 additions and 9 deletions

View File

@@ -17,6 +17,12 @@
# For systems without journald
mkdir -p /var/log/journal
if [ ! -z "`ls /host/lib/libsystemd* 2>/dev/null`" ]
then
rm /lib/x86_64-linux-gnu/libsystemd*
cp -a /host/lib/libsystemd* /lib/x86_64-linux-gnu/
fi
LD_PRELOAD=/opt/td-agent/embedded/lib/libjemalloc.so
RUBY_GC_HEAP_OLDOBJECT_LIMIT_FACTOR=0.9