Re: [systemd-devel] service dependencies

2023-01-14 Thread Barry
> On 10 Jan 2023, at 13:56, Markus Rathgeb wrote: > >  > 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

Re: [systemd-devel] service dependencies

2023-01-10 Thread Markus Rathgeb
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 so

Re: [systemd-devel] service dependencies

2023-01-10 Thread Andrei Borzenkov
On Tue, Jan 10, 2023 at 2:48 PM Markus Rathgeb wrote: > > Hello, > > I have a question about service dependencies. > > Assume there are two services > * test1 > * test2 > > (for testing purpose only I am using user services) > > The test2 service requires that test1 service is active. > The test2

Re: [systemd-devel] service dependencies

2023-01-10 Thread Kevin P. Fleming
On Tue, Jan 10, 2023, at 06:47, Markus Rathgeb wrote: > > How can I declare test2 unit section to ensure it works as expected by me? > There are lots of StackOverflow posts about this... it's not as easy as it seems, so don't feel concerned that your attempt did not work :-) If you are using a

[systemd-devel] service dependencies

2023-01-10 Thread Markus Rathgeb
Hello, I have a question about service dependencies. Assume there are two services * test1 * test2 (for testing purpose only I am using user services) The test2 service requires that test1 service is active. The test2 service cannot work if test1 is not active, so it should ensure * test1 is st