[prev in list] [next in list] [prev in thread] [next in thread] 

List:       centos
Subject:    Re: [CentOS] systemd | Requires statement with an instantiated service
From:       Kenneth Porter <shiva () sewingwitch ! com>
Date:       2021-09-01 17:03:39
Message-ID: 2A091F2848A6AF2D10FA5C5E () [192 ! 168 ! 1 ! 16]
[Download RAW message or body]

--On Wednesday, September 01, 2021 6:36 PM +0200 Leon Fauster via CentOS 
<centos@centos.org> wrote:

> How to apply a "Requires" with an instantiated service.
>
> Example:
>
> a@.service
> b.service
>
> a@.service is started as a@host1.service and b.service must be started
> after a@host1.service but the unit will be differently parameterized
> (depended of the region). So I want to generalize the requires statement.
>
> 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 a@.service but that is not
> enough.

You might also ask on the systemd list:

<https://lists.freedesktop.org/mailman/listinfo/systemd-devel>

_______________________________________________
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic