[systemd-devel] Conflicts on service template
Lennart Poettering
lennart at poettering.net
Fri Sep 4 15:15:20 UTC 2020
On Mo, 17.08.20 16:49, Andy Pieters (systemd at andypieters.me.uk) wrote:
> Hi
>
> Is it possible (and if so, how?) to define a conflict on any other instance
> of a template unit?
no. this is not available.
We have no wildcard deps. Thing is that units can come and go
dynamically, hence implementing this would be difficult, as we'd have
to check all such wildcard dep holders whenever a new unit shows up
whether it might possibly match. And this would fall apart quickly, in
particular if you think about "positive" deps (like wants=/requires=)
instead of negative ones (i.e. Conflicts=).
Sorry,
Lennart
--
Lennart Poettering, Berlin
More information about the systemd-devel
mailing list