2
1
I have a RPi3. Since it doesn't have a hardware clock, I have a service for tlsdate
that syncs time with a local server. (This is triggered on every boot. regularly because of the frequent power cuts).
I have one more timer mysync.timer
that starts mysync.service
that syncs my calendar. This uses OAuth
and if there is a time mismatch, it errors out.
Is there any way to start the tlsdate.service
before mysync.service
, every time mysync.service
runs?
I looked at systemd documentation and found Before=
and After=
, but I am not sure how to use that with timers.
1Timers merely schedule the startup, but they do not change how the .service unit behaves otherwise. – user1686 – 2017-09-16T10:44:53.490