From: "Bezdeka, Florian" <florian.bezdeka@siemens.com>
To: "isar-users@googlegroups.com" <isar-users@googlegroups.com>,
"jan.kiszka@siemens.com" <jan.kiszka@siemens.com>
Cc: "henning.schild@siemens.com" <henning.schild@siemens.com>
Subject: Re: [PATCH 2/2] sshd-regen-keys: Fix some systemd obsolete warnings about using syslog
Date: Fri, 8 Oct 2021 09:07:42 +0000 [thread overview]
Message-ID: <d39232561a9b34334e9e7a09c4fc10a1dcd2c073.camel@siemens.com> (raw)
In-Reply-To: <899dc917-a08c-67d9-3fce-93f286a89ed9@siemens.com>
On Fri, 2021-10-08 at 10:23 +0200, Jan Kiszka wrote:
> On 08.10.21 09:47, Florian Bezdeka wrote:
> > Fixes the following warnings:
> >
> > [ 11.450104] systemd[1]: /lib/systemd/system/sshd-regen-keys.service:15:
> > [ 11.450806] systemd[1]: /lib/systemd/system/sshd-regen-keys.service:16:
> > Standard output type syslog is obsolete, automatically updating to journal.
> > Please update your unit file, and consider removing the setting altogether.
> >
>
> Interesting. We are using that downstream as well, sometimes to divert
> from syslog, sometimes to append the console (syslog+console). Do you
> know what exactly is deprecated?
Just found some info in the systemd changelog/news [1] and the hint
that the system administrator can change the default of StandardOutput
and StandardError in /etc/systemd/system.conf which would be
overwritten when defined in unit files. That's why the recommendation
is to remove this options from unit files at all.
Replacements are journal and journal+console.
[1] https://github.com/systemd/systemd/blob/6706384a89ae0c462e7172588c80667190c4d9e2/NEWS#L724
>
> Jan
>
> > Signed-off-by: Florian Bezdeka <florian.bezdeka@siemens.com>
> > ---
> > .../sshd-regen-keys/files/sshd-regen-keys.service | 2 --
> > 1 file changed, 2 deletions(-)
> >
> > diff --git a/meta/recipes-support/sshd-regen-keys/files/sshd-regen-keys.service b/meta/recipes-support/sshd-regen-keys/files/sshd-regen-keys.service
> > index 4d0a8c6..ebcee86 100644
> > --- a/meta/recipes-support/sshd-regen-keys/files/sshd-regen-keys.service
> > +++ b/meta/recipes-support/sshd-regen-keys/files/sshd-regen-keys.service
> > @@ -13,8 +13,6 @@ RemainAfterExit=yes
> > Environment=DEBIAN_FRONTEND=noninteractive
> > ExecStart=/usr/sbin/sshd-regen-keys.sh
> > ExecStartPost=-/bin/systemctl disable sshd-regen-keys.service
> > -StandardOutput=syslog
> > -StandardError=syslog
> >
> > [Install]
> > WantedBy=sysinit.target
> >
>
next prev parent reply other threads:[~2021-10-08 9:07 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-10-08 7:47 [PATCH 0/2] sshd-regen-keys: Fix boot hang on low end hardware Florian Bezdeka
2021-10-08 7:47 ` [PATCH 1/2] sshd-regen-keys: Start key generation after entropy seed Florian Bezdeka
2021-10-08 7:47 ` [PATCH 2/2] sshd-regen-keys: Fix some systemd obsolete warnings about using syslog Florian Bezdeka
2021-10-08 8:23 ` Jan Kiszka
2021-10-08 9:07 ` Bezdeka, Florian [this message]
2021-10-13 15:04 ` [PATCH 0/2] sshd-regen-keys: Fix boot hang on low end hardware Anton Mikanovich
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=d39232561a9b34334e9e7a09c4fc10a1dcd2c073.camel@siemens.com \
--to=florian.bezdeka@siemens.com \
--cc=henning.schild@siemens.com \
--cc=isar-users@googlegroups.com \
--cc=jan.kiszka@siemens.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox