On 02.09.2021 01:19, Leon Fauster wrote: > Dear list, > > following requirement exists here (systemd-239 installed): > > Applying a "Requires" statement with an instantiated service. > > Example: > > [email protected] > b.service > > [email protected] is started as [email protected] and b.service must be started > after [email protected] but the unit will be differently parameterized > (depended of the region). So I want to generalize the requires statement.
If you need to manually instantiate [email protected], you can just as well manually add necessary Requires at the same time. E.g. [email protected]: [Install] RequiredBy=b.service systemctl enable [email protected] > > My dropin file in ./b.service.d/dep.conf looks like > > [Unit] > Requires="a@*.service" > > This just produces following error: > 'Failed to add dependency on "a@*.service", ignoring: Invalid argument' > > I use also a Before=b.service statement for [email protected] but that is not > enough. > Why?
