[systemd-devel] service dependencies

Markus Rathgeb maggu2810 at gmail.com
Tue Jan 10 13:55:40 UTC 2023


Thank you both for your replies and suggestions.
I assume this one is related: https://github.com/systemd/systemd/issues/1312
And yes, I found a lot of posts about this, but no real solution.

I will further read further details about 'Upholds' and 'PropagatesStopTo.

The real use case I need to solve involves another service.

test2 not only requires test1 but also test0.
So, test2 should only be actived if test1 and test0 are activated.

The optimal solution IMHO does not require to change test0 or test1. As
test2 is the one with the requirements.

I assume I can use WantedBy in the install section of test2, but this would
require that the service is enabled / installed and not only started (for
my use case okay, but IMHO not optimal).
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/systemd-devel/attachments/20230110/52f5743d/attachment.htm>


More information about the systemd-devel mailing list