[systemd-devel] Dependencies on DBus activated services during shutdown

Andrei Borzenkov arvidjaar at gmail.com
Mon Jan 8 19:35:30 UTC 2018


08.01.2018 22:27, Michal Koutný пишет:
> 
> 
> On 01/08/2018 08:04 PM, Andrei Borzenkov wrote:
>> If systemd could infer that A requested B to be started it could also
>> add implicit ordering between A and B.
> Yes, this would be a way to the complete solution where all dependencies
> are tracked 

On the second thought you still need to handle situation when B is
already active when A gets started. Then you have no implicit
dependencies at all (no socket activation happens), but A still depends
on B during shutdown. So I'm afraid explicitly adding this information
to A is the only way.

> (however, I'm not sure it's achievable). ActivationRequest
> signal doesn't pass the requester identification and this would probably
> track just the dependencies when the B.service isn't active yet.
> 
> Michal
> 


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: OpenPGP digital signature
URL: <https://lists.freedesktop.org/archives/systemd-devel/attachments/20180108/38d30c4b/attachment.sig>


More information about the systemd-devel mailing list