[systemd-devel] Q: journal logging and "{xyz}"

Mantas Mikulėnas grawity at gmail.com
Mon Dec 27 08:57:27 UTC 2021


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.

-- 
Mantas Mikulėnas
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/systemd-devel/attachments/20211227/f3c3cb4f/attachment.htm>


More information about the systemd-devel mailing list