Andrei Borzenkov wrote:
Also, when to use %i vs. %I ? I'm trying to use a postfix instance called "per-jessen" - with this, in the service unit I get:
%i = per-jessen %I = per/jessen %f = /per/jessen
According to the man page, %I is the unescaped value??
Systemd replaces (escapes) "/" with "-".
Ah, yes, I think I saw that mentioned somewhere. But that doesn't explain why it does the reverse too? I mean, my instance name "per-jessen" becomes "per/jessen" with %I ?
Difference between %I and %f matters mostly for mount units - systemd skips leading "/" so name for mount unit for /tmp is tmp.mount. %I would give you back "tmp" and %f - /tmp.
Ah, I see, thanks.
In general you should use %I or %f and escape instantiated name appropriately. Not sure if 13.2 already has it, upstream now offers systemd-escape helper to do it.
I don't see that helper in 13.2 yet - can you describe what you mean by "escape instantiated name appropriately" ? I did try using %I, but when it translates my hyphen to a slash, it doesn't work. thanks Per -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org