[lxc-devel] [lxc/master] Remove obsolete setting regarding the Standard Output

Mingli-Yu on Github lxc-bot at linuxcontainers.org
Wed Sep 23 07:05:49 UTC 2020


A non-text attachment was scrubbed...
Name: not available
Type: text/x-mailbox
Size: 571 bytes
Desc: not available
URL: <http://lists.linuxcontainers.org/pipermail/lxc-devel/attachments/20200923/25f243b3/attachment.bin>
-------------- next part --------------
From a7a92a06a47322dee45664db5c7bfa68b2b95edb Mon Sep 17 00:00:00 2001
From: Mingli Yu <mingli.yu at windriver.com>
Date: Wed, 23 Sep 2020 07:03:02 +0000
Subject: [PATCH] Remove obsolete setting regarding the Standard Output

The Standard output type "syslog" is obsolete, causing a warning since systemd
version 246 [1].

Please consider using "journal" or "journal+console"

[1] https://github.com/systemd/systemd/blob/master/NEWS#L202

Signed-off-by: Mingli Yu <mingli.yu at windriver.com>
---
 config/init/systemd/lxc-monitord.service.in | 2 --
 config/init/systemd/lxc at .service.in         | 2 --
 2 files changed, 4 deletions(-)

diff --git a/config/init/systemd/lxc-monitord.service.in b/config/init/systemd/lxc-monitord.service.in
index f528a60995..9036cf46c7 100644
--- a/config/init/systemd/lxc-monitord.service.in
+++ b/config/init/systemd/lxc-monitord.service.in
@@ -6,8 +6,6 @@ Documentation=man:lxc
 [Service]
 Type=simple
 ExecStart=@LIBEXECDIR@/lxc/lxc-monitord --daemon
-StandardOutput=syslog
-StandardError=syslog
 
 [Install]
 WantedBy=multi-user.target
diff --git a/config/init/systemd/lxc at .service.in b/config/init/systemd/lxc at .service.in
index a2aa2211f0..21ce64aefe 100644
--- a/config/init/systemd/lxc at .service.in
+++ b/config/init/systemd/lxc at .service.in
@@ -14,8 +14,6 @@ ExecStop=@BINDIR@/lxc-stop -n %i
 # Environment=BOOTUP=serial
 # Environment=CONSOLETYPE=serial
 Delegate=yes
-StandardOutput=syslog
-StandardError=syslog
 
 [Install]
 WantedBy=multi-user.target


More information about the lxc-devel mailing list