[systemd-devel] Still confused with socket activation

Reindl Harald h.reindl at thelounge.net
Thu Feb 4 12:07:33 UTC 2021



Am 04.02.21 um 12:46 schrieb Benjamin Berg:
> On Wed, 2021-02-03 at 16:43 +0100, Reindl Harald wrote:
>> seriously - explain what you expect to happen in case of
>>
>> Requires=a.service
>> Before=a.service
>>
>> except some warning that it's nonsense
> 
> So, one way I used it is as ExecStartPost= equivalent for a .target
> unit. i.e. pull in a Type=oneshot service once a target has become
> active in order to execute a simple command


"Requires=a.service" combined with "Before=a.service" is contradictory - 
don't you get that?


More information about the systemd-devel mailing list