Re: After= and Wants= doesn't seem to have an effect

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 20.12.2021 17:05, Christopher Wong wrote:
>> # /etc/systemd/system/iris-detection.service
>> [Unit]
>> Description=Iris detection
>> PartOf=opticsd.service
> 
> 
> How can you tell that it is a loop? iris-detection.service doesn't have any After= as you stated below.

Yes, sorry, you are right.

> Is it due to the PartOf=opticsd.service?
> 

I do not think so. Still, loop is possible due to some other dependencies, it is also
possible that actual unit definitions are different (e.g. units files have been changed
after systemd read them).

Running with debig log level may give some more hints.

> 
> Best Regards,
> 
> Christopher Wong
> 
> ________________________________
> From: systemd-devel <systemd-devel-bounces@xxxxxxxxxxxxxxxxxxxxx> on behalf of Andrei Borzenkov <arvidjaar@xxxxxxxxx>
> Sent: Monday, December 20, 2021 1:27:42 PM
> To: systemd-devel@xxxxxxxxxxxxxxxxxxxxx
> Subject: Re:  After= and Wants= doesn't seem to have an effect
> 
> On 20.12.2021 15:06, Christopher Wong wrote:
>> # /etc/systemd/system/iris-detection.service
>> After=temperature-controller.service
>>
>> # /usr/lib/systemd/system/temperature-controller.service
>> After=iris-detection.service
> 
> This is loop and systemd is free to break it by ignoring some dependency.
> 




[Index of Archives]     [LARTC]     [Bugtraq]     [Yosemite Forum]     [Photo]

  Powered by Linux