diff options
author | Nicholas Sielicki <nicholas.sielicki@legrand.com> | 2022-03-16 11:28:57 -0500 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2022-03-21 15:18:24 +0000 |
commit | 2fd4d2cb70fc244499ccf45bf7248c2a530ea9e2 (patch) | |
tree | 70989fbd209e59645e5046aeb646aee218466cd4 /documentation/dev-manual | |
parent | 154e69f118ae7ce0db39cb99a90e51008f80543e (diff) | |
download | poky-2fd4d2cb70fc244499ccf45bf7248c2a530ea9e2.tar.gz |
dev-manual: note on using journald without syslog
journald is not a syslog provider, so using journald exclusively amounts
to just preventing a syslog provider from being specified on a system
where journald is active.
Various spots where this has popped up:
* https://stackoverflow.com/q/48746397
* https://lists.yoctoproject.org/g/yocto/topic/82883035#53548
(From yocto-docs rev: aba38d5dc2db708ed6e8fc6dca4d869fe7fe855c)
Signed-off-by: Nicholas Sielicki <nicholas.sielicki@legrand.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'documentation/dev-manual')
-rw-r--r-- | documentation/dev-manual/common-tasks.rst | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/documentation/dev-manual/common-tasks.rst b/documentation/dev-manual/common-tasks.rst index ca3fbc856a..9d4aaa5a67 100644 --- a/documentation/dev-manual/common-tasks.rst +++ b/documentation/dev-manual/common-tasks.rst | |||
@@ -7910,6 +7910,20 @@ image cannot use this package group. However, it can install SysVinit | |||
7910 | and the appropriate packages will have support for both systemd and | 7910 | and the appropriate packages will have support for both systemd and |
7911 | SysVinit. | 7911 | SysVinit. |
7912 | 7912 | ||
7913 | Using systemd-journald without a traditional syslog daemon | ||
7914 | ---------------------------------------------------------- | ||
7915 | |||
7916 | Counter-intuitively, ``systemd-journald`` is not a syslog runtime or provider, | ||
7917 | and the proper way to use systemd-journald as your sole logging mechanism is to | ||
7918 | effectively disable syslog entirely by setting these variables in your distribution | ||
7919 | configuration file:: | ||
7920 | |||
7921 | VIRTUAL-RUNTIME_syslog = "" | ||
7922 | VIRTUAL-RUNTIME_base-utils-syslog = "" | ||
7923 | |||
7924 | Doing so will prevent ``rsyslog`` / ``busybox-syslog`` from being pulled in by | ||
7925 | default, leaving only ``journald``. | ||
7926 | |||
7913 | Selecting a Device Manager | 7927 | Selecting a Device Manager |
7914 | ========================== | 7928 | ========================== |
7915 | 7929 | ||