Disable forwarding of journal to syslog
systemd recently changed the default in their recipe
to forward all messages on to syslog. OpenBMC runs in
a constrained environment so the redundancy of having
the logs in both journald and syslog does not make sense.
Tested: Verified journal no longer tries to forward
messgages on to syslog.
Resolves openbmc/openbmc#3299
Change-Id: Ic7a8e488b60e984670ab4de666f820eeffe39afb
Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
diff --git a/common/recipes-phosphor/systemd-policy/phosphor-systemd-policy/disable-forward-to-syslog.conf b/common/recipes-phosphor/systemd-policy/phosphor-systemd-policy/disable-forward-to-syslog.conf
new file mode 100644
index 0000000..c85bcea
--- /dev/null
+++ b/common/recipes-phosphor/systemd-policy/phosphor-systemd-policy/disable-forward-to-syslog.conf
@@ -0,0 +1,11 @@
+# This file overrides some defaults for systemd
+#
+# systemd recently changed the default in their recipe
+# to forward all messages on to syslog. OpenBMC runs in
+# a constrained environment so the redundancy of having
+# the logs in both journald and syslog does not make sense.
+#
+# See systemd-system.conf(5) for details on the conf files
+
+[Journal]
+ForwardToSyslog=no