[systemd-devel] [feature request] allow instances in file.preset

Lennart Poettering lennart at poettering.net
Thu Oct 9 07:44:42 PDT 2014


On Thu, 09.10.14 11:42, Damien Robert (damien.olivier.robert at gmail.com) wrote:

> >From Lennart Poettering, Wed 08 Oct 2014 at 23:33:13 (+0200) :
> > On Fri, 03.10.14 19:18, Damien Robert (damien.olivier.robert at gmail.com) wrote:
> > > > But this means it
> > > > would only find the template, and the instance would have to come from
> > > > somewhere else, but where?
> > > From the preset file?
> > No, we enumerate the installed unit files, and then look them up in
> > the preset files. 
> 
> Yes, I meant you can't do the otherway around anyway (enumerate lines in
> preset files and enable/disable them accordingly) because the preset
> information is given by globs.

This feels wrong. The preset files are actually globs, not full file
names. They are not really suitable as a list of filenames, but only
as something to match file names against...

Lennart

-- 
Lennart Poettering, Red Hat


More information about the systemd-devel mailing list