[systemd-devel] After= and Wants= doesn't seem to have an effect

Andrei Borzenkov arvidjaar at gmail.com
Tue Dec 21 07:24:35 UTC 2021


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 at lists.freedesktop.org> on behalf of Andrei Borzenkov <arvidjaar at gmail.com>
> Sent: Monday, December 20, 2021 1:27:42 PM
> To: systemd-devel at lists.freedesktop.org
> Subject: Re: [systemd-devel] 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.
> 



More information about the systemd-devel mailing list