Per Jessen wrote:
I am creating a postfix service unit with support for multiple instances.
I tried adding this:
ExecStartPre=/etc/%i/system/config_postfix ExecStartPre=/etc/%i/system/update_chroot ExecStartPre=/etc/%i/system/update_postmaps
which doesn't seem to work. I guess there's no instance id substitution in the name of the executable, only in the arguments? It isn't really clear from the man page.
Actually, it doesn't matter, those (opensuse supplied) scripts don't know about postfix instances anyway, see bug#790871. I'd still like to know if/where/when the instance id is being substituted or not? 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?? -- Per Jessen, Zürich (2.0°C) http://www.hostsuisse.com/ - virtual servers, made in Switzerland. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org