[systemd-devel] Multiple template parameters for one service

Uoti Urpala uoti.urpala at pp1.inet.fi
Mon Jun 30 09:52:58 PDT 2014


On Mon, 2014-06-30 at 12:38 +0200, Lennart Poettering wrote:
> On Sat, 28.06.14 18:15, Moviuro (moviuro at gmail.com) wrote:
> > An idea would be to use units with many '@' or have systemd interpret the 
> > string between '@' and '.service' as '@'-separated values (e.g. 
> > unison at local_user@profile.service).

> Hummm... So far the instancing was strictly one-dimensional from
> systemd's PoV. And I think I would prefer it like that, since it makes
> so many things easier. I mean, as you notice, one can always parse this
> from shell or so, if you want, so we can actually get away with not
> supporting anything more complex with systemd.

Shouldn't just another '%x' format specifier or two for unit files be
enough to get most of the benefit, without changing any of the
underlying architecture? As in something like "%?5?" meaning "interpret
the instance name as a whatever-delimited list, and place the 5th
element of the list here".




More information about the systemd-devel mailing list