Re: [chrony-users] How to Delay Chrony Start Until After PPS Device Attached

[ Thread Index | Date Index | More chrony.tuxfamily.org/chrony-users Archives ]


On Sat, Dec 09, 2023 at 06:16:11AM -0500, Kevin P. Fleming wrote:
> Can you define what you mean by 'ready'? If you mean the relevant /dev/pps* path doesn't yet exist, then you can use 'systemctl edit chrony.service' to add an 'After' dependency on your `pps_setup@<foo>.service`, and systemd will wait to start Chrony until after the other service has been started (and if it's a one-shot service as it probably should be, systemd will actually wait until that service has been *completed*).

It's also possible to add a direct dependency on a device created by
udev, see:
https://procomputers.discourse.group/t/chronyd-service-randomly-fails-to-start-during-boot/22

-- 
Miroslav Lichvar


-- 
To unsubscribe email chrony-users-request@xxxxxxxxxxxxxxxxxxxx 
with "unsubscribe" in the subject.
For help email chrony-users-request@xxxxxxxxxxxxxxxxxxxx 
with "help" in the subject.
Trouble?  Email listmaster@xxxxxxxxxxxxxxxxxxxx.


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/