[systemd-devel] Antw: [EXT] Re: Q: journal logging and "{xyz}"
Ulrich Windl
Ulrich.Windl at rz.uni-regensburg.de
Mon Dec 27 12:09:28 UTC 2021
>>> Mantas Mikulenas <grawity at gmail.com> schrieb am 27.12.2021 um 09:57 in
Nachricht
<CAPWNY8X9+zUm9N8g1fypFMMMXVE+QZ0eCu-qGE100qtq1-vMDA at mail.gmail.com>:
> On Mon, Dec 27, 2021 at 10:53 AM Ulrich Windl <
> Ulrich.Windl at rz.uni-regensburg.de> wrote:
>
>> Hi!
>>
>> I just noticed that systemctl kill logs a (mis-named) service
>> "{__SERVICE__}" as "\x7b__SERVICE__\x7d.service".
>> Is that intended? Are braces considered bad?
>>
>
> As per systemd.unit(5),
>
> *Valid unit names consist of a "name prefix" and a dot and a suffix
> specifying the unit type. The "unit prefix" must consist of one or more
> valid characters (ASCII letters, digits, ":", "-", "_", ".", and "\").*
>
> Anything else goes through C-style escaping (see systemd-escape) before it
> even leaves systemctl.
Well, but why write "Failed to kill unit \x7b__SERVICE__\x7d.service" when
"unit {__SERVICE__} has an invalid name" (the message I'd suggest)?
I mean: I see no problem _outputting_ the original service name, especially
when it's considered to be an invalid name.
Regards,
Ulrich
>
> --
> Mantas Mikulėnas
More information about the systemd-devel
mailing list