[systemd-devel] timers always run when time changes

Cameron Norman camerontnorman at gmail.com
Thu Apr 30 19:34:23 PDT 2015


On Thu, Apr 30, 2015 at 6:35 PM, Likang Wang <laborish at gmail.com> wrote:
> Hi all,
>
> The entire system is running on an embedded box, and the system time will be
> set to 2008-01-01 00:00:00 after every reboot. My app running on the box
> will get the real time from my server and update time on the box after every
> booting.(I could not use NTP or systemd-timesyncd for some other reason)

Does the service file for this custom time syncing service have the
directive `Before=time-sync.target` ? If it does, are you sure that
when it is considered running by systemd that the time has indeed been
synced?

Cheers,
--
Cameron Norman


More information about the systemd-devel mailing list