On Mon, 30.06.14 19:52, Uoti Urpala (uoti.urp...@pp1.inet.fi) wrote:

> 
> On Mon, 2014-06-30 at 12:38 +0200, Lennart Poettering wrote:
> > On Sat, 28.06.14 18:15, Moviuro (movi...@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@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".

Well, I am not thrilled by that idea, but I'd probably accept a patch
that does this if it uses a very convincing syntax and doesn't try to be
too generic. For example, it should enforce one clear separator syntax,
and clearly map to %i and %I.

Lennart

-- 
Lennart Poettering, Red Hat
_______________________________________________
systemd-devel mailing list
systemd-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/systemd-devel

Reply via email to