[systemd-devel] Ordering services issue. Trying to start ptp4l in bonding setup fails as bonding appears to take a while.

Andrei Borzenkov arvidjaar at gmail.com
Wed Dec 1 18:50:34 UTC 2021


On 01.12.2021 17:20, Brian Hutchinson wrote:
> Hi,
> 
> I'm on embedded imx8 mm platform and trying to order services such that
> ptp4l (LinuxPTP) is started after a bond is created between two DSA network
> interfaces on my Microchip Ethernet Switch.
> 
> No matter what I try with BindsTo, Wants=, Requires=, Before=, After=, when
> the board boots and I watch the console output I see systemd start the
> ptp4l service before the bond is actually up which results in ptp4l failing
> to start.
> 
...> 
> Is it also possible to use carrier state in .service file?
> 

I do not think it is possible. I have seen similar request (possibility to
initiate action when interface is up) more than once, but so far nothing
happened. 

This would be similar to NetworkManager dispatcher script.

It does not really fit into service dependency at all.


More information about the systemd-devel mailing list