summaryrefslogtreecommitdiff
path: root/src/journal/journald-server.c
diff options
context:
space:
mode:
authorSusant Sahani <ssahani@users.noreply.github.com>2017-07-15 11:57:52 +0000
committerLennart Poettering <lennart@poettering.net>2017-07-15 13:57:52 +0200
commitb2392ff31c3b98578f0011323a04619c8a2c19b4 (patch)
tree211ac953048a7cf30f4b1f1608602b300ba06463 /src/journal/journald-server.c
parentcb4069d95e447e8a01fc3feee6d6cb99669c4c38 (diff)
downloadsystemd-b2392ff31c3b98578f0011323a04619c8a2c19b4.tar.gz
journald: make reading /dev/kmsg optional (#6362)
Closes #6022
Diffstat (limited to 'src/journal/journald-server.c')
-rw-r--r--src/journal/journald-server.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/journal/journald-server.c b/src/journal/journald-server.c
index 05a1254d4a..6eb19e8866 100644
--- a/src/journal/journald-server.c
+++ b/src/journal/journald-server.c
@@ -1915,6 +1915,7 @@ int server_init(Server *s) {
s->syslog_fd = s->native_fd = s->stdout_fd = s->dev_kmsg_fd = s->audit_fd = s->hostname_fd = s->notify_fd = -1;
s->compress = true;
s->seal = true;
+ s->read_kmsg = true;
s->watchdog_usec = USEC_INFINITY;
@@ -2051,7 +2052,7 @@ int server_init(Server *s) {
if (r < 0)
return r;
- /* /dev/ksmg */
+ /* /dev/kmsg */
r = server_open_dev_kmsg(s);
if (r < 0)
return r;