>>> Mantas Mikulenas <graw...@gmail.com> schrieb am 27.12.2021 um 09:57 in Nachricht <capwny8x9+zum9n8g1fypfmmmxve+qz0ecu-qge100qtq1-v...@mail.gmail.com>: > On Mon, Dec 27, 2021 at 10:53 AM Ulrich Windl < > ulrich.wi...@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