diff --git a/image/system_services.sh b/image/system_services.sh index af3f5e5da..7947ad4aa 100755 --- a/image/system_services.sh +++ b/image/system_services.sh @@ -21,6 +21,9 @@ mkdir /etc/service/syslog-ng cp /build/runit/syslog-ng /etc/service/syslog-ng/run mkdir -p /var/lib/syslog-ng cp /build/config/syslog_ng_default /etc/default/syslog-ng +# Replace the system() source because inside Docker we +# can't access /proc/kmsg. +sed -i -E 's/^(\s*)system\(\);/\1unix-stream("\/dev\/log");/' /etc/syslog-ng/syslog-ng.conf ## Install logrotate. $minimal_apt_get_install logrotate