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

Christopher Wong Christopher.Wong at axis.com
Mon Dec 20 12:06:19 UTC 2021


Hi,

I got a case were After= and Wants= doesn't seem to have an effect for the opticsd.service.

./info.log.1:2021-12-17T21:30:02.684+00:00  [ INFO    ] systemd[1]: Starting Iris detection...
./info.log.1:2021-12-17T21:30:02.884+00:00  [ INFO    ] systemd[1]: Starting Wiper power manager...
./info.log.1:2021-12-17T21:30:02.886+00:00  [ INFO    ] systemd[1]: Starting Optics daemon...
./info.log.1:2021-12-17T21:30:02.888+00:00  [ INFO    ] systemd[1]: Started Optics daemon.
./info.log.1:2021-12-17T21:30:02.890+00:00  [ INFO    ] systemd[1]: Started Wiper power manager.
./info.log.1:2021-12-17T21:30:02.890+00:00  [ INFO    ] systemd[1]: Starting Temperature controller...
./info.log.1:2021-12-17T21:30:02.895+00:00  [ INFO    ] systemd[1]: Started Temperature controller.




# /usr/lib/systemd/system/coco-wiper-manager.service

[Unit]
Description=Wiper power manager
Before=temperature-controller.service wiper-service.service
...
[Install]
WantedBy=temperature-controller.service wiper-service.service


# /etc/systemd/system/opticsd.service
[Unit]
Description=Optics daemon
...
After=iris-detection.service
Wants=iris-detection.service
After=temperature-controller.service
Wants=temperature-controller.service
...
[Install]
WantedBy=multi-user.target

# /etc/systemd/system/iris-detection.service
[Unit]
Description=Iris detection
PartOf=opticsd.service

# /usr/lib/systemd/system/wiper-service.service
[Unit]
Description=Wiper Service
Wants=temperature-controller.service
After=temperature-controller.service

# /usr/lib/systemd/system/temperature-controller.service
[Unit]
Description=Temperature controller
...
After=iris-detection.service
Wants=iris-detection.service

Is it possible that After= is ignored, even if Wants= is specified?

Best Regards,

Christopher Wong

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/systemd-devel/attachments/20211220/87192f46/attachment.htm>


More information about the systemd-devel mailing list